Hello I am trying to use react-router-config in my project and im stuck with a problem that routes with params refuse to work.
Here is my configuration:
const App = () => {
return (
<Router history={history}>{renderRoutes(routes)}</Router>
);
};
export const routes = [
{
component: Root,
routes: [
{
path: PATH.ROOT,
component: Home,
exact: true
},
{
path: "/child/:id",
component: Test
exact: true
}
]
}
];
const Root = ({ route }) => {
const { routes } = route;
return (
<>
<Header />
<main className={styles.container}>{renderRoutes(routes)}</main>
</>
);
};
const Home = () => {
return (
<div>
<h1>Home Page</h1>
<NavBar />
</div>
);
};
const Test = () => {
return (
<div>
<h1>Tesst</h1>
</div>
);
};
when i try to go to the /child/123 route i get the 404 error

could you tell me please what am i doing wrong, maybe it has something to do with webpack configuration?