Book description
Become a full life cycle developer by not only learning how to build micro frontends but also deploying and managing them efficiently in a cloud-native environment
Key Features
- Go through strategies for building and deploying production-grade micro frontends on the cloud
- Explore the right choice and guiding principles to build different micro frontend patterns
- Learn how to use React the right way to build and deploy micro frontends with this step-by-step guide
- Purchase of the print or Kindle book includes a free PDF eBook
Book Description
Although deservedly popular and highly performant tools for building modern web applications, React and single-page applications (SPAs) become more and more sluggish as your applications and teams grow. To solve this problem, many large web apps have started to break down monolith SPAs into independently deployable smaller apps and components—a pattern called micro frontends. But micro frontends aren't a perfect solution, but rather a double-edged sword. This book teaches you how to architect and build them with the right principles to reap all the benefits without the pitfalls.
This book will take you through two patterns of building micro frontends, the multi-SPA pattern and the micro apps pattern. You’ll find out which patterns to use and when, as well as take a look at the nuances of deploying these micro frontends using cloud-native technologies such as Kubernetes and Firebase. With the help of this book, you’ll gain an in-depth understanding of state management, solving problems with routing, and deployment strategies between the different micro frontends.
By the end of this book, you’ll have learned how to design and build a React-based micro frontend application using module federation and deploy it to the cloud efficiently.
What you will learn
- Discover two primary patterns for building micro frontends
- Explore how to set up monorepos for efficient team collaboration
- Deal with complexities such as routing and sharing state between different micro frontends
- Understand how module federation works and use it to build micro frontends
- Find out how to deploy micro frontends to cloud platforms
- Figure out how to build the right development experience for teams
Who this book is for
This book is for intermediate- to advanced-level developers with a working knowledge of React and web application development with JavaScript and TypeScript. Knowledge of concepts like client-side and server-side rendering, React, NodeJS, Webpack, and the basics of Kubernetes and serverless computing is desirable, but not necessary.
Table of contents
- Building Micro Frontends with React 18
- Contributors
- About the author
- About the reviewers
- Preface
- Part 1: Introduction to Microfrontends
- Chapter 1: Introducing Microfrontends
- Chapter 2: Key Principles and Components of Microfrontends
- Chapter 3: Monorepos versus Polyrepos for Microfrontends
- Part 2: Architecting Microfrontends
- Chapter 4: Implementing the Multi-SPA Pattern for Microfrontends
- Chapter 5: Implementing the Micro-Apps Pattern for Microfrontends
- Chapter 6: Server-Rendered Microfrontends
- Part 3: Deploying Microfrontends
- Chapter 7: Deploying Microfrontends to Static Storage
- Chapter 8: Deploying Microfrontends to Kubernetes
- Part 4: Managing Microfrontends
- Chapter 9: Managing Microfrontends in Production
-
Chapter 10: Common Pitfalls to avoid when Building Microfrontends
- Don’t make your micro apps too small
- Avoiding the overuse of Shared Component Code
- Avoiding using multiple frameworks in your microfrontend
- An inability to deploy an individual micro app
- Excessively relying on state
- Avoiding build-time compilation to assemble Microfrontends
- Avoiding packing your micro apps into NPM packages
- Summary
- Part 5: Emerging Trends
- Chapter 11: Latest Trends in Microfrontends
- Index
- Other Books You May Enjoy
Product information
- Title: Building Micro Frontends with React 18
- Author(s):
- Release date: October 2023
- Publisher(s): Packt Publishing
- ISBN: 9781804610961
You might also like
book
Full-Stack React, TypeScript, and Node
Discover the current landscape of full-stack development and how to leverage modern web technologies for building …
book
React Application Architecture for Production
A hands-on guide to help you develop skills and confidence in building and structuring React applications …
book
Just React!: Learn React the React Way
Here is your perfect companion for learning about and developing React applications. This book introduces concepts …
book
React: Up & Running, 2nd Edition
Hit the ground running with React, the open source technology from Facebook for building rich web …