Favourite React Hooks
Essential hooks
- https://github.com/alex-cory/use-ssr (detect SSR vs Client-Side rendering)
Installing:yarn add use-ssr
- https://github.com/kitze/react-hanger (utility hooks like useInput, useBoolean, useArray, etc)
Installing:yarn add react-hanger
- https://github.com/iamkevinwolf/formal (beautiful form state with Hooks)
Installing:yarn add @kevinwolf/formal
- https://github.com/donavon/use-persisted-state (share global state across tabs and windows, realtime)
Installing:yarn add use-persisted-state
- https://github.com/nearform/graphql-hooks (super-lightweight GraphQL hooks client)
Installing:yarn add graphql-hooks
Useful hooks
- https://github.com/f/react-wait (handy for waiting async logic, via hooks)
Installing:yarn add react-wait
- https://github.com/alex-cory/use-email-autocomplete (handy email auto-complete via hooks)
Installing:yarn add use-email-autocomplete
- https://github.com/medipass/react-payment-inputs (beautiful credit card forms with React hooks)
Installing:yarn add react-payment-inputs styled-components
(requiresstyled-components
as a dependency) - https://github.com/csfrequency/react-firebase-hooks (beautiful Firebase hooks)
Installing:yarn add react-firebase-hooks firebase
(requiresfirebase
as a dependency) - https://github.com/CharlesStover/use-clippy (modify user clipboard with hooks)
Installing:yarn add use-clippy