Answer the question
In order to leave comments, you need to log in
How to render pages in react?
Question from a teapot, there is an application with three header blocks, a side menu, content.
the router sits above it all in App.js. I build most of the pages by importing all three blocks. And some pages without a side menu for example. But in the end, the side menu, when it is needed, is reloaded, erasing the active class . How can I make it so that the menu is not updated when loading? Thank you.
most page type:
...
return (
<Page wide={true}>
<Header />
<LeftMenu />
<Overview />
</Page>
);
};
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