Skip to content

This repository contains some of the most useful custom react hooks that will enhance your overall react development period by reducing your time consumption. These hooks will definitly help make your project easier.

License

Notifications You must be signed in to change notification settings

VivekMalhan666/custom-react-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About the project

This project is a means to simplify and fasten the web dev in react. There are a variety of custom hooks that can be useful during development of a major project in react

Some of the most notable hooks are:

  • useOutside
  • useEventListener
  • useArrays
  • useDebounce
  • and many more

Contributions to this repository are welcome.

Contributions

To contribute to this repository, make sure you send a pr with proper commits. Prototype of a commit is:

Name of hook

  • Name hook
  • use of hook
  • description of hook
  • example of hook
  • dependent hook (if any)

Make sure you make a suitable route for the demo of hook and add it to router persent is App.js and it's nav link in Sidebar.jsx

Make a folder with the name of hook itself in src folder Make sure the hook itself is of extention .js, while the extension of demo component is .jsx

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

About

This repository contains some of the most useful custom react hooks that will enhance your overall react development period by reducing your time consumption. These hooks will definitly help make your project easier.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published