@reactuses/core
TypeScript icon, indicating that this package has built-in type declarations

6.0.1 • Public • Published

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

ChangeLog

See the ChangeLog


Thanks

This project is heavily inspired by the following awesome projects.


Sponsor Me

If my work has helped you, consider buying me a cup of coffee. Thank you very much🥰!.

Buy me a coffee

Package Sidebar

Install

npm i @reactuses/core

Weekly Downloads

1,189

Version

6.0.1

License

Unlicense

Unpacked Size

558 kB

Total Files

12

Last publish

Collaborators

  • lianwenwu