Aug 30, 2024
It's bad enough that React pretends to be functional and then introduces state, it's extremely icky to ask developers to engage in this as well. I'm with the other commenters that probably your solution doesn't count as "from scratch." From scratch would have been more like how Fiber does it, where it has a giant registry that stores the state for each component and hook.