I tried many combination, including add/remove exact prop, but seem the router render is not working as I want, when use exact in path "/", the child router not rendering at all.
When clear exact, the /login will also render the Home component.
For now, I have to use /main or /home for the Home component instead of / that I actually need :(
Seem we can't use nested route with default '/' path, do we have any plan or work around for this case?
Example: main router
Then in Home component we also have a router
I tried many combination, including add/remove exact prop, but seem the router render is not working as I want, when use exact in path "/", the child router not rendering at all. When clear exact, the /login will also render the Home component.
For now, I have to use
/main
or/home
for the Home component instead of/
that I actually need :(