Skip to content

Example without using <Routes> component #269

@tarviroos

Description

@tarviroos

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions