Aug 27, 2024
Actually I think Adromansky's point is "recreate from stratch" could mean many things, for instance creating an execution model in which you have a function that mimics a React FC and you execute your own implementation of useState that has the guarantees of the original React hook. To me, recreating a hook using other hooks shows your skillset as a developer, however using useReducer probably means you are using the original useState hook anyway indirectly.