Answer the question
In order to leave comments, you need to log in
How to recursively traverse all child components in react?
While doing server-side rendering of react, there was a problem fetching data on the server. There is a router configuration file:
const routes = [
{
path: '/',
exact: true,
component: HomePage
},
{
path: '/news',
component: NewsPage
},
{
path: '/contacts',
component: ContactsPage
},
{
path: '*',
component: NotFoundPage
}
];
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question