Skip to content
A set of utility and general-purpose React hooks.
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src feat: add useAsyncSetState (#12) Sep 20, 2019
test feat: add useAsyncSetState (#12) Sep 20, 2019
.babelrc feat: add useAsyncSetState (#12) Sep 20, 2019
.gitattributes
.gitignore fix build Mar 7, 2019
.travis.yml fix(useMediaQuery): matches immediately in a DOM environment (#11) Aug 12, 2019
CHANGELOG.md Publish v0.3.14 Sep 20, 2019
LICENSE Initial commit Oct 25, 2018
README.md docs: Update README (#2) Mar 28, 2019
package.json Publish v0.3.14 Sep 20, 2019
tsconfig.json chore: add and fix tests Apr 22, 2019
yarn.lock fix(useMediaQuery): matches immediately in a DOM environment (#11) Aug 12, 2019

README.md

@restart/hooks npm

A set of utility and general-purpose React hooks.

Install

npm install @restart/hooks

Usage

import useInterval from '@restart/hooks/useInterval'

useInterval(() => loop(), false, 300)
You can’t perform that action at this time.