3 ms·
Yeah, I tend to agree (and this is why I don't like hooks). I'll write pure functional components all day, but if I need to introduce state, I'm going to use a
by brundolf 6y ago
Yeah, I tend to agree (and this is why I don't like hooks). I'll write pure functional components all day, but if I need to introduce state, I'm going to use a class component and just acknowledge that state as state and not try to pretend it's still just a function.
- anchpop 6y agoI use hooks because they cut down on boilerplate, not because I'm trying to pretend a component is just a function.