npm.io
3.0.0 • Published 3 years ago

@casperiv/useful

Licence
MIT
Version
3.0.0
Deps
0
Size
21 kB
Vulns
0
Weekly
0
Stars
2

useful

List of useful React functions and hooks

install

npm

npm install @casperiv/useful
Yarn
yarn add @casperiv/useful

Usage

import { useMounted } from "@casperiv/useful/hooks/useMounted";

const Component = () => {
  const mounted = useMounted();
  console.log("Mounted?", mounted);

  return <p>Hello world!</p>;
};

Available hooks

Keywords