--

I commented extensively about that in one specific piece I wrote, that I think that React newer "design" (or mental model) with "hooks" has never achieved the same level of obviousness of the previous design. Most developers don't know how to deal with the hooks in the right way and most of the time I see either performance issues or code that gets severely "spaghettified" to overcompensate for possible unnecessary redraws.

When most developers use a library wrong, we may have a strong indication of a design failure. It is possible that React's issues could be tackled with a simple renaming of the main "hooks" to something better ("useCallback"?) but in my view the whole paradigm could be improved with the addition of helper methods, even if redundant ones.

--

--

Marcos Sandrini
Marcos Sandrini

Written by Marcos Sandrini

Designer and front-end programmer with 20+ years of experience, also a keen observer of the world and its people

No responses yet