Hacker News new | ask | show | jobs
by aphextron 2235 days ago
>Couldn't you do the same thing with class components though?

Sure. But the point is that the entire class syntax becomes superfluous once you do that. Everything becomes a pure functional component, and you can just throw in a `useEffect` wherever the need for lifecycle based side effects arises.