Teague Stockwell 5c01189412
fix: useMedia SSR hydration bug with defaultState (#2216)
* fix: useMedia SSR hydration bug with defaultState

Prevent a React hydration mismatch when a default value is provided
by not defaulting to window.matchMedia(query).matches.

* Refactor nested ifs
2021-12-30 15:31:24 +01:00
2021-08-31 22:22:38 +01:00
2021-08-31 22:22:21 +01:00
2019-05-31 10:04:55 +02:00
2021-08-31 22:31:41 +00:00
2020-03-30 13:40:26 +08:00
2018-10-27 12:15:13 +02:00
2021-02-20 17:23:02 +01:00



👍
react-use





npm package CircleCI master npm downloads demos
Collection of essential React Hooks. Port of libreact.
Translations: 🇨🇳 汉语




npm i react-use












Usage — how to import.
Unlicense — public domain.
Support — add yourself to backer list below.






Contributors








Description
React Hooks — 👍
Readme Unlicense 147 MiB
Languages
TypeScript 99.6%
JavaScript 0.4%