This is a React hooks library, written in Typescript and easy to use. It provides a set of hooks that enables you to build your React applications faster. There are hooks for most common use cases you might need.
import { useDisclosure } from 'tiny-react-hooks'; // might be deploy in the future
function Component() {
const { isOpen, onOpen, onClose, onToggle } = useDisclosure();
// ...
}
- [
useDisclosure
] — handles boolean state with useful utility functions.