New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-instance

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

react-instance

Functional statefull React components

3.0.0
unpublished
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

React Instance

functional statefull React components
proof of concept

Install

npm i react-instance

Example

See CodeSandbox.

const Component = instance(({ setState }) => {
  return (props, state) => (
    <button onClick={() => setState({ active: !state.active })}>
      {state.active ? "Deactivate" : "Activate"}
    </button>
  )
})

API

See src/index.js.

Donate

By buying a beer.

Keywords

react

FAQs

Package last updated on 19 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts