use-state-with-version
v1.0.13
Published
Custom hook to include a version check for useState which was previously available for setState in class components.
Downloads
2
Readme
useStateWithVersion React Hook
Custom hook to include a version check for useState which was previously available for setState in class components.
Installation
npm install use-state-with-version
Usage
import React from 'react';
import useStateWithVersion from 'use-state-with-version';
const App = () => {
const [object, setObject] = useStateWithVersion({});
return (
<div>
</div>
);
};
Contribute
git clone [email protected]:fstn/use-state-with-version.git
cd use-state-with-version
npm install
npm run test