A collection of useful React custom hooks.
Built using TypeScript, and tested using Jest.
- useArray
A hook that provides various methods to manipulate an array.
- useBoolean
A hook that manages a boolean state with helper methods to set it to true or false.
- useCounter
A hook that manages a numeric counter state with increment, decrement, and reset functions.
- useCycle
A hook that cycles through a list of values on each invocation of the cycle function.
- useDefault
A hook that returns a default value if the current state is null or undefined.
- useQuery
A hook that executes an asynchronous function and manages loading, error, and success states.