Installation

This guide covers the installation of NPM package `leehooks` for ReactJS and how to use ease of code in your new projects and large scale applications.

Prerequisites

1

System Requirements

  • Node.js: Make sure you have Node.js installed. The project uses npm, which comes with Node.js. Install Node.js from here.
  • NPM: Ensure that npm is installed with Node.js. Alternatively.

To verify installation, run:

node -v
npm -v
2

Setup React

You can also choose your favorite React Frameworks .

# npm 7+, extra double-dash is needed:
npm create vite@latest my-react-app -- --template react
3

Installation

You need to have leehooks installed, So use in CLI terminal.

npm install @lixril/leehooks
4

Demo Code

Check hook is works or not.

"use client" //nextjs and works only in client
import { useActionState } from "@lixril/leehooks";

//Your Code