coaction 0.1.0 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/package.json +1 -2
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# coaction
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
[](https://www.npmjs.com/package/coaction)
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
An efficient and flexible state management library for building high-performance, multithreading web applications.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
You can install it via npm, yarn or pnpm.
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npm install coaction
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```jsx
|
|
20
|
+
import { create } from 'coaction';
|
|
21
|
+
|
|
22
|
+
const useStore = create((set, get) => ({
|
|
23
|
+
count: 0,
|
|
24
|
+
increment: () => set((state) => state.count++)
|
|
25
|
+
}));
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Documentation
|
|
29
|
+
|
|
30
|
+
You can find the documentation [here](https://github.com/unadlib/coaction).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coaction",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "A sleek JavaScript library designed for high-performance and multithreading web apps.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"coaction"
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"bugs": {
|
|
38
38
|
"url": "https://github.com/unadlib/coaction/issues"
|
|
39
39
|
},
|
|
40
|
-
"devDependencies": {},
|
|
41
40
|
"preconstruct": {
|
|
42
41
|
"umdName": "Coaction",
|
|
43
42
|
"entrypoints": [
|