List of useful React functions and hooks
npm install @casperiv/usefulList of useful React functions and hooks
``bash`
npm install @casperiv/useful
`bash`
yarn add @casperiv/useful
`tsx
import { useMounted } from "@casperiv/useful/hooks/useMounted";
const Component = () => {
const mounted = useMounted();
console.log("Mounted?", mounted);
return
Hello world!
;Available hooks
useDots.ts
- useDownload.ts
- useEmitEvent.ts
- useEventListener.ts
- useMounted.ts
- useNetworkStatus.ts
- usePortal.ts
- useSearch.ts
- useSound.ts
- useTabFocus.ts
- useViewport.ts`