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

Example without using <Routes> component #269

Open
tarviroos opened this issue Apr 3, 2023 · 0 comments
Open

Example without using <Routes> component #269

tarviroos opened this issue Apr 3, 2023 · 0 comments

Comments

@tarviroos
Copy link

React Router v6 has some great features like loaders. However, these won't work if you use Routes component to wrap your routes in your micro front-end (like in the example project and all other examples around the web).

React Router docs say the following:
If you're using a data router like [createBrowserRouter](https://reactrouter.com/en/main/routers/create-browser-router) it is uncommon to use this component as it does not participate in data loading. - React Router

Has anyone figured out how to do module federation where you define routes in your micro-frontend as RouteObject[] in order to use all of the new React Router features? Will this example project be updated any time soon?

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

1 participant