Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Best Practices for Building Better React Apps

Best Practices for Building Better React Apps

The talk was delivered by Nidhi Dadiya on 6/4/25 as part of the celebration of the Women's Day event IWD2025 organized by GDG Gandhinagar.
#IWD2025
#IWD25
#WTMIndia
#WTMIWD2025

Avatar for Nidhi Dadiya

Nidhi Dadiya

April 07, 2025
Tweet

More Decks by Nidhi Dadiya

Other Decks in Education

Transcript

  1. Nidhi Dadiya Best Practices for Building Better React Apps From

    Good to Great: Elevate Your React Skills with These Proven Techniques 1 IWD 2025 GDG Gandhinagar
  2. Outline • Clean code habits • Performance tips • Avoiding

    beginner traps • Real-world practices 8
  3. 11

  4. 12

  5. 14

  6. 15

  7. 18

  8. • Component & Folder structure • Naming conventions • Reusability

    and DRY • Learn by doing rather than reading/watching Clean code habits 19
  9. • Component & Folder structure • Naming conventions • Reusability

    and DRY • Learn by doing rather than reading/watching • Don't copy/paste code you don't understand Clean code habits 20
  10. Performance Tips • Lazy loading & Code spliting • Memoization

    • Optimising images/assets/fonts • Web workers • Virtualisation of lists • Optimising renders 22
  11. Avoiding beginner traps • State management overkill • Prop drilling

    • useE ff ect misuse • Overusing Context API 27
  12. Avoiding beginner traps • State management overkill • Prop drilling

    • useE ff ect misuse • Overusing Context API • Inline functions in JSX • Not using keys in lists 28
  13. Real world practices & developer mindset • Writing maintainable code

    for teams • Code reviews & communication • Testing basics (even if just unit tests) • Learn to read docs — life skill! • Linting + formatting (Prettier, ESLint) • Using TypeScript 30
  14. Life-Saving Developer Hacks • Master the basics • Ask for

    help when stuck / take a break • Don't blindly apply every piece of advice found online 34
  15. Life-Saving Developer Hacks • Master the basics • Ask for

    help when stuck / take a break • Don't blindly apply every piece of advice found online • Done is better than perfect 35
  16. Life-Saving Developer Hacks • Master the basics • Ask for

    help when stuck / take a break • Don't blindly apply every piece of advice found online • Done is better than perfect • Stay open to learning new things/tools/methods • Master your dev tools(VSCode, Git, Chrome Inspector) 36
  17. Life-Saving Developer Hacks • Understand the big picture behind your

    tasks • Communication skills • Take ownership of your career/life/project • Mentor young/junior devs • Continuously invest in your skills 37
  18. • React DevTools • GitHub Copilot, ESLint, Prettier • Lighthouse

    • React Query / Tanstack Query • Zustand / Redux Toolkit • AI tools for dev productivity • Gitlens, Import cost, glean 38 Tools Recommended