react-router-dom-compat not rendering components. #9039
Unanswered
Antoine-Bottin
asked this question in
v5 to v6 Migration
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I'm acutally using react router dom compat to slowly migrate to v6 ( we've got a huge app).
I'm following step by step the install, the
<BrowserRouter> <CompatRouter> <App /> </CompatRouter> </BrowserRouter>
pattern .
</App>
componentSwitch
looks like this:<Switch> <CompatRoute exact path="/" render={() => <Home />} /> <CompatRoute path="/application/:appId" render={() => <ApplicationRouter />} /> <Redirect to="/" /> </Switch>
Home
component is rendering BUT</ApplicationRouter>
doesn't.<ApplicationRouter />
is as you can guess a Router too with is ownSwitch
.Is there anything that could explain that I can't render component with their own
Router
?Thanks a lot for you help
Beta Was this translation helpful? Give feedback.
All reactions