@webkrafters/react-observable-context 1.1.1 → 1.1.3
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 +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,9 +4,9 @@ Observable react context - prevents an automatic total component tree re-renderi
|
|
|
4
4
|
|
|
5
5
|
<h4><u>Install</u></h4>
|
|
6
6
|
|
|
7
|
-
npm i -S @webkrafters/react-
|
|
7
|
+
npm i -S @webkrafters/react-observable-context
|
|
8
8
|
|
|
9
|
-
npm install --save @webkrafters/react-
|
|
9
|
+
npm install --save @webkrafters/react-observable-context
|
|
10
10
|
|
|
11
11
|
## API
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ The React-Observable-Context package exports only **2** modules namely: the **cr
|
|
|
14
14
|
|
|
15
15
|
`createContext` is a zero-parameter funtion returning a store-bearing context. Pass the context to the React::useContext() parameter to obtain the context's `store`.
|
|
16
16
|
|
|
17
|
-
The `Provider` can immediately be used as-is anywhere the React-Observable-Context is required. It accepts **3** props and the customary Provider `children` prop. Supply the context to its `context` prop; the initial state to the customary Provider `value` prop; and the optional `prehooks`
|
|
17
|
+
The `Provider` can immediately be used as-is anywhere the React-Observable-Context is required. It accepts **3** props and the customary Provider `children` prop. Supply the context to its `context` prop; the initial state to the customary Provider `value` prop; and the optional `prehooks` prop <i>(discussed in the prehooks section below)</i>.
|
|
18
18
|
|
|
19
19
|
<i><u>Note:</u></i> the Provider `context` prop is not updateable. Once set, all further updates to this prop are ignored.
|
|
20
20
|
|
package/package.json
CHANGED