react-hookstore
Advanced tools
Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "react-hookstore", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "A state management library for react using the bleeding edge hooks feature", | ||
@@ -5,0 +5,0 @@ "main": "dist/react-hookstore.js", |
@@ -68,3 +68,2 @@ # React Hook Store | ||
It is possible to create multiple stores in an app. | ||
A string name must be provided at a store creation when multiple stores are created. | ||
Stores can be referenced by using their instance that is returned by the createStore method, as well as using their name. | ||
@@ -76,4 +75,4 @@ | ||
const clickCount = createStore({ state: 1, name: 'clickCountStore'}); | ||
createStore({ state: 'John Doe', name: 'nameStore' }); | ||
const clickCount = createStore('clickCountStore', 0); | ||
createStore('nameStore', 'John Doe'); | ||
@@ -80,0 +79,0 @@ // counter will start at 2 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31460
222