Become A Better Web Developer: Basic React Best Practices

Profile picture
Florian WaltherDeveloper and Edu YouTuber (280K subs)
Become A Better Web Developer: Basic React Best Practices poster
29 minutes
Course Overview

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:

  • Derive State When Possible: Learn how to minimize redundant state management by deriving state from existing props or state.
  • 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.
  • Clean Up Your Fetch Requests: Discover best practices for managing and cleaning up asynchronous fetch requests to avoid race conditions and improve performance.
  • Create Custom Hooks: Explore how to extract reusable logic into custom hooks, promoting code organization and maintainability.
  • Create Hooks For Your Context Providers: Learn how to create dedicated hooks for accessing context values, simplifying component logic and improving readability.
  • 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.

Meet Florian Walther

Florian Walther is the creator of the popular Coding In Flow YouTube channel, known for its in-depth programming tutorials without the fluff.

With 8 years of experience creating tutorials, Florian has focused specifically on ReactJS and NextJS for the past three years. He believes React is a fantastic framework but recognizes its potential pitfalls. This course distills his expertise, highlighting common React mistakes, offering solutions, and providing tips for writing cleaner, more robust code.

For more React and NextJS insights, subscribe to Coding In Flow on YouTube and join his free web dev newsletter at CodingInFlow.com/newsletter.


Profile picture
Mid-Level EngineerFinTech Co

Thank you so much, you are an amazing tutor!

Profile picture
Entry-Level Software EngineerGoogle

Really good tut. easy to follow, full of useful info and tips. keep it up!

Profile picture
Senior Software EngineerUnemployed

I’m currently unemployed, and it has been incredibly challenging to find tutorials on technologies I’m familiar with that aren’t paywalled. I truly appreciate you!

Profile picture
VortexUnknown

Immediately noticed that you are German haha, great content!

Profile picture
Entry-Level EngineerAirbnb

Amazing, I loved the quizzes.