1.0.13 • Published 4 years ago

use-state-with-version v1.0.13

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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

1.0.1

4 years ago

1.0.11

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.0

4 years ago