4 ms·
This is frankly a rather mediocre article, and exists more as a plug for a company's service than really useful advice. For one thing, with function components
by acemarke 6y ago
This is frankly a rather mediocre article, and exists more as a plug for a company's service than really useful advice. For one thing, with function components there is no `this`, so tip #2 is useless (and this is especially odd given that the other tips talk about using hooks, which _only_ work in function components).
There's many other articles that are much more useful than this one. To point to a few off the top of my head:
- https://alexkondov.com/tao-of-react/ https://alexkondov.com/tao-of-react/ : a useful list of patterns and practices when writing React code
- https://leerob.io/blog/react-state-management https://leerob.io/blog/react-state-management : a recent summary of how React state management approaches have changed over time, with some current suggestions
- https://daveceddia.com/react-ecosystem-overview/ https://daveceddia.com/react-ecosystem-overview/ : a summary of the React ecosystem as it currently stands
and I personally have put up a lot of material over the last year that is _much_ more useful than this:
- https://blog.isquaredsoftware.com/2020/05/blogged-answers-a-mostly-complete-guide-to-react-rendering-behavior/ https://blog.isquaredsoftware.com/2020/05/blogged-answers-a-...: a deep technical dive into how React rendering works (when, why, how, and nuances in behavior), including looks at how Context and React-Redux interact with rendering
- https://blog.isquaredsoftware.com/2021/01/context-redux-differences/ https://blog.isquaredsoftware.com/2021/01/context-redux-diff... : a comparison of the capabilities and use cases for React's Context API, the `useReducer` hook, and Redux/React-Redux
- https://blog.isquaredsoftware.com/2020/12/presentations-react-redux-ts-intro/ https://blog.isquaredsoftware.com/2020/12/presentations-reac... : an updated intro to React with hooks, Redux / Redux Toolkit, and TypeScript
Any one of the posts I just linked would be much more worth your time.