Discussion on: Refactoring useState() To useReducer()

m0nica profile image
Monica Powell Author

I decided to convert from useState() to useReducer() as useReducer() is more DRY and I believe will be easier for me to maintain and extend over time. Both approaches work so I think I'd leave it up to personal preference.