Logging for React’s useReducer Hooks API

Jeff Longbeard
1 min readSep 2, 2019

--

Logger Example

With the arrival of react hooks, many things that were easy only with Redux are not easy with only hooks.

The downside to this is that Redux has a great ecosystem of middleware. Immediately when reaching for hooks, I realized there wasn’t a great logging system that was similar to redux-logger so I created use-reducer logger to fill that void.

It’s a pretty simple in usage and available with a quick npm / yarn install.

Check it out here: https://github.com/jefflombard/use-reducer-logger

--

--

No responses yet