Avoiding using multiple frameworks in your microfrontend
One of the benefits of microfrontends is that, technically, it’s possible to have each app built using a different framework. However, just because it’s possible doesn’t mean you have to. There are numerous drawbacks to using multiple frameworks within a single microfrontend:
- The cognitive overload for team members as they potentially switch from one team to the other over time is very high.
- Since every framework comes with its own JavaScript bundle, and since every framework will have a different set of NPM modules that the team uses, the amount of JavaScript code transferred to the user’s devices will be high. Therefore, we will not be able to take full advantage of browser caching or service worker caching, since each app uses its own bundle.
- Different frameworks will have different performance challenges and issues, and each team will have to deal with them individually and not...