4 ms·
I stopped writing anything in react the moment they introduced that ridiculous hooks API. Very clear they have no clue at all. There are plenty of other options
by mvdtnz 3y ago
I stopped writing anything in react the moment they introduced that ridiculous hooks API. Very clear they have no clue at all. There are plenty of other options that don't reach so hard to appeal to functional purist propeller-heads.
- chrisco255 3y agoThe hooks API is entirely optional. By all means you could continue using Redux or Mobx or class components.
- kaba0 3y agoSounds like you are the one without any clue, unless you have anything substantial to say.
- maronato 3y agoI couldn’t disagree more. Having components be pure functions makes testing and developing so much easier, not to mention the reusability of hooks. Class components were a mess. They had way too much business logic and state stuffed into them that it was impossible to maintain any reasonably large component. Of course you can still write shitty code with functional components and hooks, but at least now the paradigm itself steers you towards more maintainable code
- nitwit005 3y agoHaving uses both, it just feels like trading one set of quirks for another set of quirks. In general, hooks seem tidier, but the quirks of useEffect seem rather more surprising than the old way.