Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hypersprite/toggle-state-rp

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hypersprite/toggle-state-rp - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc