@hypersprite/toggle-state-rp
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -20,3 +20,3 @@ { | ||
"main": "dst/index.js", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"scripts": { | ||
@@ -23,0 +23,0 @@ "test": "jest", |
# Toggle State Render Props Component | ||
> This is a Render Prop Component which was introduced by [Michael Jackson](https://twitter.com/mjackson) of [react-router](https://github.com/ReactTraining/react-router) fame. | ||
Demo [codesandbox.io...](https://codesandbox.io/s/xp91vq473w) | ||
> This is a Render Prop Component, this style of component was introduced by [Michael Jackson](https://twitter.com/mjackson) of [react-router](https://github.com/ReactTraining/react-router) fame. | ||
See [Official React Render Props docs](https://reactjs.org/docs/render-props.html) for more information. | ||
Accepts an initialState and passes as props: a `toggle` boolean state and three functions to update the `toggle` state. | ||
Accepts an initialState and passes as props: a `toggle` boolean state and three functions to update the `toggle` state. | ||
@@ -21,3 +23,3 @@ ## Usage | ||
```js | ||
// some place in our component, you need a DialogMessage | ||
// some place in your component, you need a DialogMessage | ||
@@ -24,0 +26,0 @@ <ToggleState |
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
9505
77