UNPKG

react-recipes

Version:

A React Hooks utility library containing popular customized hooks

111 lines (61 loc) 3.55 kB
## v1.4.0 (2021-09-15) #### Features :moneybag: - [PR](https://github.com/craig1123/react-recipes/pull/58) Added useQueryParams hook, tests, and documenation ## v1.3.0 (2021-09-15) #### Features :moneybag: - [PR](https://github.com/craig1123/react-recipes/pull/57) Added usePrint hook, tests, and documenation ## v1.2.0 (2021-09-12) #### Features :moneybag: - [PR](https://github.com/craig1123/react-recipes/pull/54) Added useLocation hook, tests, and documenation ## v1.1.0 (2020-11-25) React 17 Compatible ## v1.1.0 (2020-07-19) #### Features :moneybag: - Added features to useSpeechSynthesis: `onPause`, `onResume`, `onBoundary`, `onError`, `pause`, `resume` - Added features to useSpeechRecognition: `onResult`, `onError` ## v1.0.2 (2020-05-12) #### :bug: - SSR useLocalStorage ## v1.0.0 (2020-03-16) #### Features :moneybag: - [#28](https://github.com/craig1123/react-recipes/pull/28) Added `useAdjustColor`, `useArray`, `useFullScreen`, `useNotification` ## v0.3.0 (2020-03-16) #### Features :moneybag: - [#27](https://github.com/craig1123/react-recipes/pull/27) Added `useAsync` ## v0.2.1 (2020-01-09) #### :bug: - [#25](https://github.com/craig1123/react-recipes/pull/25) some hooks weren't being imported ## v0.2.0 (2020-01-02) #### Features :moneybag: - [#23](https://github.com/craig1123/react-recipes/pull/23) Added `useSpeechRecognition` - [#23](https://github.com/craig1123/react-recipes/pull/23) Added `useSpeechSynthesis` - [#22](https://github.com/craig1123/react-recipes/pull/22) Added `useOnlineStatus` - [#21](https://github.com/craig1123/react-recipes/pull/21) Added `useWorker` ## v0.1.0 (2019-11-21) #### Features :moneybag: - [#19](https://github.com/craig1123/react-recipes/pull/19) Made `useEventListener` SSR friendly ([@pixelize](https://github.com/pixelize)) - [#18](https://github.com/craig1123/react-recipes/pull/18) Added `useCookie` 🍪 - [#17](https://github.com/craig1123/react-recipes/pull/17) Added `useIsClient` - [#16](https://github.com/craig1123/react-recipes/pull/16) Added `useThrottle` ## v0.0.7 (2019-11-14) #### :bug: - [#14](https://github.com/craig1123/react-recipes/pull/14) `useLocalStorage` was not defined properly #### Features :moneybag: - [#13](https://github.com/craig1123/react-recipes/pull/13) Added another param to `useDimension`: `initialDimensions` - [#13](https://github.com/craig1123/react-recipes/pull/13) Added ResizeObserver to `useDimension` ## v0.0.6 (2019-11-13) #### :bug: - [#12](https://github.com/craig1123/react-recipes/pull/12) useCopyToClipboard param not defined #### Features :moneybag: - [#12](https://github.com/craig1123/react-recipes/pull/12) Added another param to `useDimension`: `effectDeps` ## v0.0.5 (2019-11-12) #### :bug: - [#8](https://github.com/craig1123/react-recipes/pull/8) Module parse failed: export \_ is not defined ## v0.0.4 (2019-11-11) #### :bug: - [#2](https://github.com/craig1123/react-recipes/pull/2) Unnecessary return in `useInterval` ([@donavon](https://github.com/donavon)) - [#3](https://github.com/craig1123/react-recipes/pull/3) Fix bug in `useLocalStorage` ([@donavon](https://github.com/donavon)) - [#7](https://github.com/craig1123/react-recipes/pull/7) Geolocation wasn't exported correctly ([@donavon](https://github.com/donavon)) #### :house: - [#5](https://github.com/craig1123/react-recipes/pull/5) Refactor `useWindowSize` to use `useEventListener` ([@donavon](https://github.com/donavon)) - [#6](https://github.com/craig1123/react-recipes/pull/6) Move `copyToClipboard` to utils