Skip to content

Dobuzi/Nooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nooks

Collection of React Hooks ready to install with NPM

  • useInput
  • useTabs
  • useTitle
  • useClick
  • useHover
  • useConfirm
  • usePreventLeave
  • useBeforeLeave
  • useFadeIn
  • useNetwork
  • useScroll
  • useFullScreen
  • useNotification
  • useAxios

Usage

import useInput from "@nooks/use-input";

const App = () => {
    const noAt = (value) => !value.includes("@");
    const name = useInput("Mr. ", noAt);
    return (
        <div className="App">
            <h1>Hello</h1>
            <input placeholder="Name" {...name.props} />
        </div>
    );
};

About

Hooks for React

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published