I required to redirect from parent path to child path as a default. but the route is getting updates. but the component is not rendering.
here is my route details:
Lazy part:
const UK = React.lazy(() => import("./components/page-projects/project-uk/project-uk.component"));
const FR = React.lazy(() => import("./components/page-projects/project-france/project-france.component"));
const LT = React.lazy(() => import("./components/page-projects/project-lithuania/project-lithuania.component"));
Route path:
<Redirect from="/projects" to="/projects/united-kingdom">
<Route path="/projects/united-kingdom" component={UK}></Route>
<Route path="/projects/france" component={FR}></Route>
<Route path="/projects/lithuania" component={LT}></Route>
</Redirect>
what is wrong here? any one help me? my version of react is 17x