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

react-stateful-function

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-stateful-function - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

2

package.json
{
"name": "react-stateful-function",
"version": "0.1.5",
"version": "0.1.6",
"description": "React Statful Function",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -7,5 +7,5 @@ import { useReducer } from 'react';

const setState = (fState = {}, callback = () => null) => { for (const type in fState) { dispatch({ type, payload: fState[type] }); } callback(); };
const resetState = () => setState(initialState);
const resetState = (callback = () => null) => { setState(initialState); callback() };
return { state, setState, resetState };
};
export { useInitialState };
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