August 13 - Top 3 React articles of the week
Top 3 React articles of the week:
1. 5 Tips to Help You Avoid React Hooks Pitfalls by Kent C. Dodds
“It definitely took its rightful place as the new hotness. But as hot as it is, React Hooks require a bit of a change in the way you think about React Component Lifecycles, State, and Side Effects and it can be easy to fall into problematic scenarios if you’re not thinking about React Hooks properly. So let’s look a bit at what pitfalls you could come across and how you can change your thinking so you avoid them.”
2. useAuth – the simplest way to add authentication to your React app by Swizec Teller
“useAuth is the simplest way to add authentication to your React app. Handles everything for you – user management, cookies, sharing state between components, login forms, everything you need to get started”. Bonus: It uses Auth0 under the hood.
3. Use React.memo() wisely by Dmitri Pavlutin
“To improve user interface performance, React offers a higher-order component React.memo(). By memoizing the rendered output, React skips unnecessary re-rendering. This post helps you distinguish the situations when React.memo() improves the performance, and, not less important, understand when its usage is useless”
Want to share this with a friend? Use this link