๐บ pretty-react-hooks
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.
ย
Check out some featured hooks:
- ๐ฆพ
useMotor
- Creates a motor and returns a binding, a function to set the goal, and a motor API - โฑ๏ธ
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:
- ๐
hoarcekat
- Create a Hoarcekat story - ๐ฆ
binding utils
- Work with values that may or may not be bindings
Or, see the full list of hooks.
ย
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
ย
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 Companionpnpm build
- Compile the package'sout
directory
You will likely need the following extensions:
ย
pretty-react-hooks is licensed under the MIT License.