Features
- Built for performance.
- Embraces powers of useEffect from React.
- Out of the box integration with React version >= 16.8.0
- Small size and no dependencies
Install
npm install @sandetechtips/hooks
Quickstart
import { useToggle } from '@sandetechtips/hooks';
function App() {
const [show, setShow] = useToggle();
return (
<Fragment>
<p>{show.toString()}</p>
<button onClick={toggle}> Toggle </button>
</Fragment>
);
}
Contributors
You are welcome to contribute just send a request to me @ sandeshsingh265@gmail.com! [Become a contributor].