Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seeking Guidance on Integrating React Application Routing into Micro Frontend Architecture #3179

Open
umgu opened this issue Oct 20, 2023 · 1 comment

Comments

@umgu
Copy link

umgu commented Oct 20, 2023

Hello,

I have an existing Micro Frontend architecture with multiple Next.js apps working together using Module Federation. I'm now looking to add a new React application as a Micro Frontend to this setup.

The integration of the React application itself has been relatively straightforward. However, I'm facing challenges when it comes to integrating the routing of my React app with the routing in the current Micro Frontend architecture.

Specifically, my React app has its own routing, and I'm struggling to ensure seamless navigation and routing between this new app and the existing Next.js micro frontends.

Can you please provide guidance, best practices, or reference materials on how to effectively integrate the routing of this React application into my current Micro Frontend architecture? I'd greatly appreciate any insights or examples that can help me overcome this routing challenge and get started.

Thank you in advance.

@ScriptedAlchemy
Copy link
Member

ScriptedAlchemy commented Oct 25, 2023

https://modernjs.dev/en/index.html

This is going to give you the best milage. We are working on a MFE focused release of this framework, with ssr and routing already built in, some state mamagement, hmr and TS support.

Should happen this quarter, but the framwork works perfectly currently. Just going to become much better for MFE over this quarter.

Ill be working on more federation specific things like documentation and searching docs, similar to storybook - but via MFP where its all or mostly magicly connected.

Current state, this runs a few thousand micro frontends without a problem.
I work on the infra team so ill just quote our repo:

About us

We are the Web Infra team at ByteDance. Our primitive goal is to provide excellent technical solutions to help the company's business grow, and build an open technical ecosystem to promote the development of frontend technology in the company and the industry.

Our projects

Rspack
Rsbuild
Rspress
Oxc
Modern.js
Garfish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants