3 ms·
For the less hyped and esoteric audience of the framework that does not want to go with hooks and remain with a simple dumb model I wish they don't deprecate th
by liendolucas 4y ago
For the less hyped and esoteric audience of the framework that does not want to go with hooks and remain with a simple dumb model I wish they don't deprecate the class based model but that seems to be already happening: https://react.dev/reference/react/legacy https://react.dev/reference/react/legacy. In few years in the future who knows with what new thing they will come up with. Meh.
- TheCoelacanth 4y agoEvery single one of these examples has a nearly identical anti-pattern using componentDidMount or componentDidUpdate. There's nothing here that's specific to hooks. It's just people misunderstanding the React lifecycle.