May 04 - Top 3 React articles (Beginner's Guide to useReducer + more)
Here are your curated resources for the week.
1. A Beginner's Guide to useReducer Hook by Abhinav Anshul
Don't we already have a
useState
hook to handle state management in React? Well, yes! useState does the job pretty well. However, theuseState
hook is limited in cases where a component needs a complex state structure and proper sync with the tree.useReducer
when combined withuseContext
hook could behave very similarly to Redux pattern and sometimes might be a better approach for global state management instead of other unofficial libraries.
2. The definitive guide to profiling React applications by Ovie Okeh
Knowing how to profile a React application to improve real-world performance is a good tool in any front-end developer’s toolkit. The Profiler API allows us to do just that with insights on why and how long our components are rendering for.
3. How to build a table of contents in React by Emma Goto
A table of contents lets your readers see a high-level summary of your page. In this tutorial, we’ll be building a table of contents with React. This component will dynamically render a list of page headings and highlight which heading you are currently viewing.
4. Sponsor: Clerk is the easiest way to add authentication and user management to your React application
Don't waste time reinventing the wheel. Clerk's <SignUp />
and <SignIn />
components ensure your users can quickly and securely access your application.
Want to share this newsletter with a friend? Use this link.