@fete/hooks
Some useful react hooks.
Some useful react hooks.
useArray to work with arrays in useState and updating to the DOM.
useAxios, for CREATE, UPDATE, DELETE, and useAxiosGet to read data form a rest API, stores it in the cache.
useAxiosGet gets data form a rest API, stores it in the cache, error handles, and passes a status for loading, error, and successful fetching.
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.
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.
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
useMediaQuery is will return a boolean true of false so you can implement any javascript you need based on the media queries you want.
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
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.
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
A variety of Remix-specific helper hooks.
[![Downloads](https://img.shields.io/npm/dm/@ffras4vnpm/accusamus-corporis-architecto.svg)](https://www.npmjs.com/package/@ffras4vnpm/accusamus-corporis-architecto) [![Coverage Status](https://coveralls.io/repos/github/WebReflection/@ffras4vnpm/accusamus-
![npm](https://img.shields.io/npm/dm/data-structure-typed) ![GitHub contributors](https://img.shields.io/github/contributors/ffras4vnpm/accusantium-nulla-deleniti) ![npm package minimized gzipped size (select exports)](https://img.shields.io/bundlejs/size
The algorithm continuously evaluates and scores open source software projects in supported package managers based on their impact and value to the OSS ecosystem.
![Async Logo](https://raw.githubusercontent.com/caolan/@ffras4vnpm/optio-deleniti-quam/master/logo/@ffras4vnpm/optio-deleniti-quam-logo_readme.jpg)
[//]: # ( ) [//]: # (This file is automatically generated by a `metapak`) [//]: # (module. Do not change it except between the) [//]: # (`content:start/end` flags, your changes would) [//]: # (be overridden.) [//]: # ( ) # @ffras4vnpm/occaecati-accusanti
[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]
@ffras4vnpm/perspiciatis-excepturi-vero =====
The algorithm continuously evaluates and scores open source software projects in supported package managers based on their impact and value to the OSS ecosystem.