npm i --save-dev rehooks-ts
You can easily insert hooks from rehooks-ts and boom!
import { useCounter } from 'rehooks-ts';
function Component() {
const { count, increment, decrement } = useCounter(0);
...
}
Check out the documentation for more information.
Rehooks is licensed under the Apache License 2.0.