#react-hooks

[ follow ]
#state-management

A guide to the React useReducer Hook - LogRocket Blog

useReducer is a powerful alternative to third-party state management libraries in React when handling complex state logic.

Oh Hello Apollo Client , Goodbye Redux!

Switch to GQL and Apollo Client 3 may make you walk away from Redux.
Apollo Client 3 offers benefits such as reduced boilerplate code and built-in loading, success, and error states.

Oh Hello Apollo Client , Goodbye Redux!

Switch to GQL and Apollo Client 3 can replace Redux for state management.

A guide to the React useReducer Hook - LogRocket Blog

useReducer is a powerful alternative to third-party state management libraries in React when handling complex state logic.

Oh Hello Apollo Client , Goodbye Redux!

Switch to GQL and Apollo Client 3 may make you walk away from Redux.
Apollo Client 3 offers benefits such as reduced boilerplate code and built-in loading, success, and error states.

Oh Hello Apollo Client , Goodbye Redux!

Switch to GQL and Apollo Client 3 can replace Redux for state management.
morestate-management

Why you shouldn't put refs in a dependency array

UseRef doesn't need to be included in useEffect dependencies due to its non-triggering re-renders feature.

Exploring useSyncExternalStore, a lesser-known React Hook - LogRocket Blog

useSyncExternalStore is a Hook commonly used by library authors, helpful for subscribing to external data stores.
The basic useSyncExternalStore API takes in parameters like subscribe, getSnapshot, and getServerSnapshot.
[ Load more ]