@sandetechtips/hooks
v1.1.3
Published
Modular Package to use different hooks. Written in TypeScript, documented, tested and maintained. Disclaimer: at least React 16.8 is needed (the one with hooks)
Downloads
19
Maintainers
Readme
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 @ [email protected]! [Become a contributor].