Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Taro

Become A Better Web Developer: Basic React Best Practices

via Taro

Overview

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.

Syllabus

  • Getting Started
    • Course Intro
    • Exploring Modern React Frameworks + Setup
  • Best Practices
    • Derive State When Possible
    • Clean Up Your Effects
    • Clean Up Your Fetch Requests
    • Create Custom Hooks
    • Create Hooks For Your Context Providers
    • Use Fragments Instead Of Divs
  • Go Deeper
    • Next Steps With React

Taught by

Florian Walther

Reviews

5 rating at Taro based on 5 ratings

Start your review of Become A Better Web Developer: Basic React Best Practices

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.