You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey everyone, I have brought up this question on ModuleFederation github, thought it worths a shot here as well.
In our company we are migrating all of our standalone frontend applications to a microfrontends solution using ModuleFederation and Webpack 5.
Until now each app was rendered indepently and had its own BrowserRouter.
Now we have a shell application which holds a "root" router to help navigate between remotes (react modules we call remotes)
and question is how should we handle the internal routing of each remote?
Here is our main router from the host (using v6) application that renders the sub remote applications:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey everyone, I have brought up this question on ModuleFederation github, thought it worths a shot here as well.
In our company we are migrating all of our standalone frontend applications to a microfrontends solution using ModuleFederation and Webpack 5.
Until now each app was rendered indepently and had its own
BrowserRouter
.Now we have a shell application which holds a "root" router to help navigate between remotes (react modules we call remotes)
and question is how should we handle the internal routing of each remote?
Here is our main router from the host (using v6) application that renders the sub remote applications:
And here is what each sub remote (some use v6, some use v5) application has as a router: (
RemoteComponentOne
)Is is a best practice to have nested
BrowserRouters
, do you have any other suggestions? thanks in advance!Beta Was this translation helpful? Give feedback.
All reactions