Modern Front-End Development for Rails: typo (page 208)

Happily, we can adjust our reducer to behave the way React expects with just a few small changes.

I believe this should be:

Happily, we can adjust our reducer to behave the way Redux expects with just a few small changes.

We are modifying the reducer so that it can derive its initial state without any external input so that it now conforms with the expectations of the Redux library, vs. the React useReducer hook that was used in the original implementation.

1 Like