21 ms·
So adding class lifecycle events to functional components? Why not just use a class? The beauty of the functional components is that immediately you know there
by sergiotapia 8y ago
So adding class lifecycle events to functional components? Why not just use a class?
The beauty of the functional components is that immediately you know there's ZERO state in here. It's just rendering markup based on input.
Now there's more to look out for given this `hook` thing. I don't like it.
- markmark 8y agoThis is an excellent point, not sure why you've been voted down. So now functional components can't be guaranteed to maintain their best property? Weird.