/spark

A reusable react hook library

Primary LanguageJavaScriptOtherNOASSERTION

Spark

A reusable react hooks library.
It's justa spark, but it's enough to light a fire.

Setup & install

  • 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 by nvm use
  • Install yarn using npm install -g yarn
  • Install dependencies using yarn install

Creating a new hook

  • 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!