Learning JavaScript Design Patterns: A JavaScript and React Developer's Guide, Edition 2

· "O'Reilly Media, Inc."
4.6
5 reviews
Ebook
298
Pages
Eligible
Ratings and reviews aren’t verified  Learn More

About this ebook

Do you want to write beautiful, structured, and maintainable JavaScript by applying modern design patterns to the language? Do you want clean, efficient, manageable code? Want to stay up-to-date with the latest best practices? If so, the updated second edition of Learning JavaScript Design Patterns is the ideal place to start.

Author Addy Osmani shows you how to apply modern design patterns to JavaScript and React—including modules, mixins, observers, and mediators. You'll learn about performance and rendering patterns such as server-side rendering and Islands architecture. You'll also learn how architectural patterns like MVC, MVP, and MVVM are useful from the perspective of a modern web application developer.

This book explores:

  • Architectural patterns for structuring your components and apps
  • More than 20 design patterns in JavaScript and React, applicable for developers at any level
  • Different pattern categories including creational, structural, and behavioral
  • Essential performance patterns including dynamic imports and code-splitting
  • Rendering patterns such as server-side rendering, hydration, Islands architecture, and more


Additionally, you'll explore modern JavaScript syntax like JavaScript modules, React patterns like Hooks, higher-order components (HOCs), and more, to stay ahead in the ever-evolving world of web development.

Ratings and reviews

4.6
5 reviews
Paul Simons
January 8, 2024
Pretty good. The book dives deep into modern design patterns, helping you craft maintainable and scalable web apps. As a React dev, I appreciated the ramp-up of how to think about classic patterns pragmatically (like some are still useful and how, some are not) and the sections on Hooks and Render Props later on too. Some clear explanations, real-world examples, and insights into the latest JavaScript features, this book was worth a read.
Did you find this helpful?
Build JS
November 19, 2023
I was a fan of the original Learning JS design patterns book and was interested to see what a rebooted modern take on it might look like. I wasn't disappointed. This version heavily leans into modern JavaScript syntax and (I felt) balanced how much it focuses on patterns using vanilla JS that remain relevant and pragmatic, while ramping you up through the various React design patterns. I felt it was a great compliment to the other project by the author (patterns.dev) and would recommend it.
Did you find this helpful?
Vergnugen Eins
December 19, 2023
I really got a lot of value out of the first version of the book and this modern version is very welcome. Loved the focus on reevaluating patterns with modern JS (modules, async/await, frameworks) in mind.
Did you find this helpful?

About the author

Addy Osmani is an Engineering Leader working on Google Chrome. He leads Chrome's Developer Experience teams, helping to keep the web fast and delightful to build. Addy has authored several open-source projects as well as a number of books including Learning Patterns, Learning JavaScript Design Patterns, and Image Optimization. His personal blog is addyosmani.com.

Rate this ebook

Tell us what you think.

Reading information

Smartphones and tablets
Install the Google Play Books app for Android and iPad/iPhone. It syncs automatically with your account and allows you to read online or offline wherever you are.
Laptops and computers
You can listen to audiobooks purchased on Google Play using your computer's web browser.
eReaders and other devices
To read on e-ink devices like Kobo eReaders, you'll need to download a file and transfer it to your device. Follow the detailed Help Center instructions to transfer the files to supported eReaders.