A reusable react hooks library.
It's justa spark, but it's enough to light a fire.
- Clone the repository into your local directory
- Install nvm (node version manager) and run the following command to install node version 20.9.0
nvm install
followed bynvm use
- Install yarn using
npm install -g yarn
- Install dependencies using
yarn install
- Create a new react app for the hook in the
packages
directory using the following command yarn create vite <name-of-the-hook> --template react-ts
- When choosing the package name, use an intuitive name for the hook with the prefix
use-
- Example:
use-local-storage
- Checkout to your directory and create a
src
directory and continue working on the hook
Viola! Happy coding!