Å·±¦ÓéÀÖ

Jump to ratings and reviews
Rate this book

React Design Patterns and Best Practices

Rate this book
Build modular applications that are easy to scale using the most powerful components and design patterns that React can offer you right now About This Book - Dive into the core patterns and components of React.js in order to master your application's design - Improve their debugging skills using the DevTools - This book is packed with easy-to-follow examples that can be used to create reusable code and extensible designs Who This Book Is For If you want to increase your understanding of React and apply it to real-life application development, then this book is for you. What You Will Learn - Write clean and maintainable code - Create reusable components applying consolidated techniques - Use React effectively in the browser and node - Choose the right styling approach according to the needs of the applications - Use server-side rendering to make applications load faster - Build high-performing applications by optimizing components In Detail Taking a complete journey through the most valuable design patterns in React, this book demonstrates how to apply design patterns and best practices in real-life situations, whether that's for new or already existing projects. It will help you to make your applications more flexible, perform better, and easier to maintain - giving your workflow a huge boost when it comes to speed without reducing quality. We'll begin by understanding the internals of React before gradually moving on to writing clean and maintainable code. We'll build components that are reusable across the application, structure applications, and create forms that actually work. Then we'll style React components and optimize them to make applications faster and more responsive. Finally, we'll write tests effectively and you'll learn how to contribute to React and its ecosystem. By the end of the book, you'll be saved from a lot of trial and error and developmental headaches, and you will be on the road to becoming a React expert. Style and approach The design patterns in the book are explained using real-world, step-by-step examples. For each design pattern, there are hints about when to use it and when to look for something more suitable. This book can also be used as a practical guide, showing you how to leverage design patterns.

318 pages, ebook

Published January 13, 2017

82 people are currently reading
140 people want to read

About the author

Michele Bertoli

1Ìýbook10Ìýfollowers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
34 (30%)
4 stars
56 (50%)
3 stars
19 (16%)
2 stars
3 (2%)
1 star
0 (0%)
Displaying 1 - 10 of 10 reviews
Profile Image for Joe Narvaez.
23 reviews2 followers
March 22, 2018
Good basic overview. Nothing groundbreaking. Although the author does cover render prop (he calls it 'function as a child' ), he focuses on HOC's. Unfortunately, HOC's have lost favor in the community. Render Props'() seem to be the new thing as a pattern for code reuse. For good reasons; as outlined here:
2 reviews
October 3, 2018
The book does a good job at explaining concepts well and is divided into well structured chapters. I would have liked to see more examples to flesh out some of the concepts as some ideas are mentioned all too briefly.

For more experienced React devs, don't give up on this book after reading the first couple chapters as the meat and potatoes can be found in chapters 4 to 10.

Cons:

* The way the code is explained can be too verbose. Explaining `class List extends React.Component` is fine the first few times but could've been omitted after chapter 1. Maybe the author is doing it for the benefit for those that skip chapters but if you don't understand that concept then you probably shouldn't be reading the latter chapters anyway.
* While the book lacks depth, it makes up for it by covering a broad range of topics. If you want more advanced react patterns, I'd suggest looking at Kent C Dodds advanced patterns videos
* Some things could've been explained better in detail so I ended up consulting the official docs

Pros:

* Comprehensive coverage on all aspects of React.
* Some handy 3rd party packages mentioned that I'd never heard of before
* Concise and gets to the point
Profile Image for Jon Jones.
88 reviews1 follower
October 21, 2019
I read this book to gain a better understanding of the react framework and this delivered. The book provides good detailed information about React that helped me to understand the nuances of the framework in more detail
Profile Image for Eduardo Xavier.
129 reviews1 follower
May 5, 2018
Michele did the best work I've read so far about react native. I loved all discussions and compartions that were presented. Lots of insights that improved what I learned so far.
Profile Image for Sebastian Sanio.
268 reviews2 followers
June 24, 2023
While this book offers valuable introductions to React design patterns and best practices for beginners, it doesn't quite cater to the needs of advanced users. It provides a solid foundation for novices, but those seeking more in-depth knowledge might find it lacking in new insights, thus my four-star rating.

The book's relevance is slightly diminished by outdated content, as several updates to React have occurred since its last edition. This, combined with a focus more suited for beginners, makes it less beneficial for seasoned developers.

In short, this book is a good starting point for beginners but falls short for advanced React developers. An updated edition encompassing recent React advancements would enhance its value significantly
Profile Image for Furkan Sakar.
10 reviews
November 5, 2017
There are lots of gems inside the book, the author did a good job by not including Redux into the patterns. The book starts with problem, explaining basic solution then going into better using specific npm packages. It is always important to note that there is no single solution that solves all problems.
10 reviews
June 14, 2017
Very clearly written, with great examples. Good overview of various technology options too. The chapter on styling was especially helpfully written. Highly recommended!
Displaying 1 - 10 of 10 reviews

Can't find what you're looking for?

Get help and learn more about the design.