Have ideas to improve npm?Join in the discussion! »

    @casper124578/useful
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.9 • Public • Published

    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

    • useMounted
    • useNetworkStatus
    • usePortal
    • useSearch
    • useSound
    • useWindowEvent
    • useEmitEvent

    Keywords

    Install

    npm i @casper124578/useful

    DownloadsWeekly Downloads

    217

    Version

    0.0.9

    License

    MIT

    Unpacked Size

    19 kB

    Total Files

    22

    Last publish

    Collaborators

    • avatar