Search results
77 packages found
This returns the previous value of state while using functional component or any react hook.
A custom React hook that modifies useEffect hook to skip the effect on mount (first render) and only run when dependency is changed
useArray to work with arrays in useState and updating to the DOM.
Global store for React using Context and custom hooks.
A React Custom Hooks Collection
Base project for creating react hook modules
Returns true once all the images inside a container are loaded
A collection of hooks that helps you to track the lifecycle of your components in a similar way to class components.
- hook
- react
- custom
- lifecycle
- component
- class
- methods
- componentDidUpdate
- componentDidMount
- componentWillUnmount
- useDidUpdate
- useDidMount
- useWillUnmount
A bank of utility hooks for UI react development
A library of custom react components and hooks to make life easier
Global object for easy handling of custom hooks, references and data. Bundled with an intersectionObserver
useTime takes 2 arguments, the first is the function you would like to run after the the delay, the second is the delay in milliseconds. It returns a object with clear, and rest functions to clear, or reset the timeout.
useEventListener is a custom react hook to add and remove event listeners from the dom. First input is the listener, the second is a callback function to run when the the listener is triggered, the third is optional
React Native database using React Hooks
useToggle will default to false on initialization, unless provided a initial boolean value. It will return an tuple array `[value, toggleValue]` of the value, and a callback function. The value will be true or false, and the function can set the value to
useStorage hook stores the data in local, or session storage. It takes a key as a string argument, and a default value as a string. The hook will search the storage the key in storage for a value and return if it there is one, otherwise it will use the de
useDebounce to add a delay to a action after stopping interaction. I.E. Typing into a search field, and there's a delay from stopping typing of 1 second before the search is called.
useAxiosPost a React custom hook fully tested that returns a tuple of status, a function to make a post request, and axios error response, and the success response.