React ·
TypeScript Hooks Typescript-hooks-react is a Typescript based library for Several Hooks.
- Easy to Configure: React makes it painless to create interactive UIs. Hooks included are easy to use and configure.
- Meets Many Usecases: Hooks included are well versed and suited to a large set of use cases.
- Include Once and use Anywhere: These hooks can be use anywhere in your project and hence keeps the project simple.
Installation
npm i typescript-hooks-react --save
Documentation
🛠️ Under Construction. 😶🌫️
Examples
We have several examples. Here is the first one to get you started:
import { useKeyPress } from typescript-hooks-react
const shiftPressed = useKeyPress('Shift');
useEffect(() => {
dispatch({ type: 'setShiftPressed', payload: shiftPressed });
}, [shiftPressed]);
When Shift ⌨️` is pressed. It dispatches a state change event and the change is updated across the application.
Contributing
Please follow strict Writing good typescript suggestions. For example.
Push the code and create a new PR.
Cheers 🍻
Good First Issues
Please Feel Free to report all the bugs :bugs: found whatsoever.
Thanks.
License
No License.