@casper124578/useful
v2.1.0 react-hooks hooks
useful
List of useful React functions and hooks
install
npm
npm install @casper124578/useful
Yarn
yarn add @casper124578/useful
Usage
import { useMounted } from "@casper124578/useful/hooks/useMounted";
const Component = () => {
const mounted = useMounted();
console.log("Mounted?", mounted);
return <p>Hello world!</p>;
};
Available hooks
npm i @casper124578/useful
Metadata
- MIT
- ^12.20.0 || ^14.13.1 || >=16.0.0
- Dev-CasperTheGhost
- released 8/12/2023