An optimized, and flexible react production-ready hooks library written in TypeScript
npm i --save-dev rehooks-ts
You can easily import hooks from rehooks-ts and boom!
import { useCounter } from 'rehooks-ts';
function Component() {
const { count, increment, decrement } = useCounter(0);
...
}
Rehooks is licensed under the MIT License.