React Hooks Library
General purpose React hooks library
Installation
Install with yarn
:
$ yarn add lib-react-hooks
Or, npm
if you prefer:
$ npm install --save lib-react-hooks
Usage
Simply import any hooks you want to use in your React component. Example using useAsync
:
;; const Component = { const request = ; return <div> requestcomplete ? <p>`Name: `</p> : <p>Loading...</p> </div> ;};
Available hooks
See the documentation site for more.
License
MIT License. See LICENSE file for details.