mobx-react-use-autorun 3.1.11 → 3.1.13
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 +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ Provide concise usage for mobx in react<br/>
|
|
|
14
14
|
export default observer((props: {name: string}) => {
|
|
15
15
|
|
|
16
16
|
const state = useMobxState({
|
|
17
|
-
|
|
17
|
+
age: 16
|
|
18
18
|
}, {
|
|
19
19
|
...props,
|
|
20
20
|
divRef: useRef<any>()
|
|
@@ -22,9 +22,9 @@ Provide concise usage for mobx in react<br/>
|
|
|
22
22
|
|
|
23
23
|
return <div
|
|
24
24
|
ref={state.divRef}
|
|
25
|
-
onClick={() => state.
|
|
25
|
+
onClick={() => state.age++}
|
|
26
26
|
>
|
|
27
|
-
{state.
|
|
27
|
+
{`${state.name}'s age is ${state.age}`}
|
|
28
28
|
</div>
|
|
29
29
|
})
|
|
30
30
|
|
|
@@ -235,7 +235,7 @@ Correct Example:<br/>
|
|
|
235
235
|
|
|
236
236
|
# Learn More
|
|
237
237
|
|
|
238
|
-
1.
|
|
238
|
+
1. A JavaScript library for building user interfaces (https://reactjs.org)<br/>
|
|
239
239
|
2. Reactive Extensions Library for JavaScript (https://www.npmjs.com/package/rxjs)
|
|
240
240
|
3. Material UI is a library of React UI components that implements Google's Material Design (https://mui.com)
|
|
241
241
|
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"mobx-react-use-autorun","version":"3.1.
|
|
1
|
+
{"name":"mobx-react-use-autorun","version":"3.1.13","description":"Provide concise usage for mobx in react","scripts":{"test":"npx -y -p typescript -p ts-node ts-node --skipProject bin/mobx_react_test.ts","build":"npx -y -p typescript -p ts-node ts-node --skipProject bin/mobx_react_build.ts","make":"npx -y -p typescript -p ts-node ts-node --skipProject bin/mobx_react_make.ts"},"dependencies":{"mobx":"6.8.0","mobx-react-lite":"3.4.0","react-use":"17.4.0","rxjs":"7.8.0"},"peerDependencies":{"react":">=16.8.0"},"license":"MIT","keywords":["react","mobx","typescript","hooks"],"main":"./dist/index.js","types":"./dist/index.d.ts","eslintConfig":{"extends":["react-app","react-app/jest"]},"homepage":"https://github.com/zdu-strong/mobx-react-use-autorun#readme","repository":{"type":"git","url":"git+https://github.com/zdu-strong/mobx-react-use-autorun.git"},"files":["lib","dist"],"bugs":{"url":"https://github.com/zdu-strong/mobx-react-use-autorun/issues"},"publishConfig":{"registry":"https://registry.npmjs.org/"}}
|