8000 GitHub - NormalDuck/pretty-react-hooks: 💐 A collection of useful hooks for roblox-ts and React
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

NormalDuck/pretty-react-hooks

 
 

Repository files navigation

GitHub Workflow Status npm version npm downloads GitHub license

An opinionated collection of useful hooks and utilites for React in roblox-ts.

If you find a bug or have a feature request, please open an issue.

 

⭐ Featured

Check out some featured hooks:

  • 🦾 useMotion - Creates a memoized Motion object set to the given initial value. Returns a binding that updates with the Motion, along with the Motion object.
  • ⏱️ useAsync - A hook that runs an async function and returns the result and status
  • ⚙️ useTagged - Tracks and returns a list of all instances with the given tag

This package also exports some useful utilities:

Or, see the full list of hooks.

 

📦 Installation

This package is available for Roblox TypeScript projects on NPM.

npm install @rbxts/pretty-react-hooks
yarn add @rbxts/pretty-react-hooks
pnpm add @rbxts/pretty-react-hooks

 

🌻 Contributing

Contributions are welcome! Note that if you make a change to a hook, you should also check the tests and documentation.

To get started, clone the repository and run pnpm install. Then, you can run the following commands:

  • pnpm dev - Enable watch mode with support for TestEZ Companion
  • pnpm build - Compile the package's out directory

You will likely need the following extensions:

 

📝 License

pretty-react-hooks is licensed under the MIT License.

About

💐 A collection of useful hooks for roblox-ts and React

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%
0