by halflife · 6mo ago · 0 comments
In class based components, you didn’t care how react works under the hood, except for the render method which is called by react. So the surface of code controlled by react was only what you included inside that method. In function components, the entire function is owned by the renderer, so you need to deeply understand how it works.
When everyone around writes shit code, you don’t care. In hooks, it becomes much more critical.