Using Immer for React State Management

1 · CSS-Tricks · Aug. 7, 2019, 4:15 p.m.
We make use of state to keep track of application data. States change as users interact with an application. When this happens, we need to update the state that is displayed to the user, and we do this using React’s setState. Since states are not meant to be updated directly (because React’s state has to be immutable), things can get really complicated as states become more complex. They become difficult to understand and follow. This is where Immer comes … Read article The post Using Immer for...