Greg Pabian
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.

Greg Pabian
Greg Pabian

Written by Greg Pabian

A Full-stack Software Engineer that loves building products. Disclaimer: https://gist.github.com/grzpab/3cf57878ffce7d5271298ccc473bcb98

Responses (1)