@atomicjolt/hooks
v0.3.2
Published
A Set of React Hooks for Atomic Jolt
Downloads
215
Keywords
Readme
Atomic Hooks
A Set of React Hooks for Atomic Jolt
Installation
npm install --save @atomicjolt/hooks
yarn add @atomicjolt/hooks
Documentation
Usage
import { useBool } from '@atomicjolt/hooks';
const Component = () => {
const [bool, toggle] = useBool(false);
return (
<div>
<button onClick={toggle}>Toggle</button>
<p>Bool is {bool}</p>
</div>
);
};