Why I Love useReducer
Video Statistics and Information
Channel: Harry Wolff
Views: 63,358
Rating: 4.9577837 out of 5
Keywords: react, hooks, tutorial, code, react hooks, usereducer
Id: o-nCM1857AQ
Channel Id: undefined
Length: 22min 40sec (1360 seconds)
Published: Mon Apr 29 2019
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
Good video.
I personally loathe the switch case reducers and string actions and I much prefer to use RTK.
You made me realise I could use createAction, createReducer or even createSlice with the useReducer hook.
This way you get clean local state (like in your video), and keep code easier to maintain. :)
this replaces Redux?