use-state-with-version

1.0.13 • Public • Published

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 git@github.com:fstn/use-state-with-version.git
  • cd use-state-with-version
  • npm install
  • npm run test

More

Readme

Keywords

none

Package Sidebar

Install

npm i use-state-with-version

Weekly Downloads

0

Version

1.0.13

License

MIT

Unpacked Size

48.4 kB

Total Files

15

Last publish

Collaborators

  • fstn