Common Pitfalls to avoid when Building Microfrontends
We’ve come a long way! We’ve learned how to build microfrontends, how to deploy them to the native cloud, and how to manage them in production.
As we start working with microfrontends, we will make mistakes, but we will learn from them and eventually build our own set of best practices, discovering what works best for our use cases. However, it is always a smart thing to learn from others’ mistakes as well. In this chapter, we will cover some of the pitfalls earlier teams faced when working with microfrontends.
We will teach you about some common pitfalls and how to avoid them, which are as follows:
- Not making your microapps too small
- Avoiding the overuse of common shared code/libraries
- Avoiding multiple frameworks within a microfrontend
- The inability to deploy individual micro apps
- Excessively relying on state
- Avoiding build-time compilation to assemble Microfrontends
- Avoiding...