Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
ReactJS is, by far, the most popular JavaScript framework invented. This short video course outlines common developer mistakes during React app development, completed with detailed code samples and explanations.
By watching this course, you will be able to:
1. Make tangible improvements to your company's codebase
2. Deepen your understanding of core React concepts
Florian outlines key best practices for building maintainable and efficient React applications. It covers six essential topics:
1. **Derive State When Possible:** Learn how to minimize redundant state management by deriving state from existing props or state.
2. **Clean Up Your Effects:** Understand the importance of cleaning up side effects (like timers and subscriptions) within `useEffect` to prevent memory leaks and unexpected behavior.
3. **Clean Up Your Fetch Requests:** Discover best practices for managing and cleaning up asynchronous fetch requests to avoid race conditions and improve performance.
4. **Create Custom Hooks:** Explore how to extract reusable logic into custom hooks, promoting code organization and maintainability.
5. **Create Hooks For Your Context Providers:** Learn how to create dedicated hooks for accessing context values, simplifying component logic and improving readability.
6. **Use Fragments Instead of divs:** Understand the performance benefits of using React Fragments instead of unnecessary divs to optimize the DOM structure.
By following these guidelines, you can avoid common pitfalls and create cleaner, more performant React apps as a web developer. Not following these recommendations will make your codebase harder to work with and be less performant.