Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
React Anti-Patterns

You're reading from   React Anti-Patterns Build efficient and maintainable React applications with test-driven development and refactoring

Arrow left icon
Product type Paperback
Published in Jan 2024
Publisher Packt
ISBN-13 9781805123972
Length 324 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Juntao Qiu Juntao Qiu
Author Profile Icon Juntao Qiu
Juntao Qiu
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Part 1:Introducing the Fundamentals FREE CHAPTER
2. Chapter 1: Introducing React Anti-Patterns 3. Chapter 2: Understanding React Essentials 4. Chapter 3: Organizing Your React Application 5. Chapter 4: Designing Your React Components 6. Part 2: Embracing Testing Techniques
7. Chapter 5: Testing in React 8. Chapter 6: Exploring Common Refactoring Techniques 9. Chapter 7: Introducing Test-Driven Development with React 10. Part 3: Unveiling Business Logic and Design Patterns
11. Chapter 8: Exploring Data Management in React 12. Chapter 9: Applying Design Principles in React 13. Chapter 10: Diving Deep into Composition Patterns 14. Part 4: Engaging in Practical Implementation
15. Chapter 11: Introducing Layered Architecture in React 16. Chapter 12: Implementing an End-To-End Project 17. Chapter 13: Recapping Anti-Pattern Principles 18. Index 19. Other Book You May Enjoy

Preface

Building frontend applications is challenging, especially when constructing large ones, and the difficulty escalates without proper guidance. Unfortunately, many React-based applications fall into this scenario due to the library’s UI-centric nature, leaving developers to navigate the other complexities of frontend development on their own. There are numerous other considerations such as asynchronous network requests, accessibility, performance, and state management, to name a few. These factors contribute to the complexity of frontend applications. As the scale of the application grows, maintaining the code becomes an arduous task. Adding new features requires considerably more time than it first appears, and identifying defects (and then fixing them) is equally challenging, if not more so.

However, these challenges are surmountable. We can learn to identify common anti-patterns that cause problems, then employ established patterns, design principles, and practices to address and rectify these issues. History teaches us that solutions derived in one field often find relevance in others, especially when it comes to fundamental design principles such as the Single Responsibility Principle, the Dependency Inversion Principle, and Don’t Repeat Yourself. These principles guided the construction of UNIX systems back in the 1970s and Java Swing applications in the 1990s, and they remain valid today. They will undoubtedly continue to be pertinent for future frameworks and libraries.

This book seeks to delve into these problems and examine how established patterns and practices can mitigate the challenges of building large applications. We’ll see how design principles and design patterns can simplify the design, making the code easier to understand, modify, and maintain in the long run. Through this exploration, readers will gain a deeper understanding of how to navigate the multifaceted world of frontend development with React, ensuring their applications are both robust and maintainable.

lock icon The rest of the chapter is locked
Next Section arrow right
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image