• Stars
    star
    1,009
  • Rank 45,557 (Top 0.9 %)
  • Language
    TypeScript
  • License
    The Unlicense
  • Created about 2 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Collection of essential React Hooks Utilities.

reactuse

Bundlephobia Types NPM Version UnLicense

npm i @reactuses/core

Collection of essential React Hooks Utilities.


QuickStart

import { useToggle } from "@reactuses/core";

function Demo() {
  const [on, toggle] = useToggle(true);

  return (
    <div>
      <div>{on ? "ON" : "OFF"}</div>
      <button onClick={toggle}>Toggle</button>
      <button onClick={() => toggle(true)}>set ON</button>
      <button onClick={() => toggle(false)}>set OFF</button>
    </div>
  );
}

Refer to documentations for more details.


Documentation & Live Examples


Feedback

You can submit an issue or provide feedback on Discord.


Contribute

See the Contributing Guide


Thanks

This project is heavily inspired by the following awesome projects.