I called two render methods to same root div .
RenderDOM.render( < Navigation /> ,document.getElementById(' root '));
RenderDOM.render( < App /> ,document.getElementById(' root '));
And what i get rendered on my screen is only a App component.
Just want to know that the one render method override the previous render method?
It's not clear to me what you're asking. Your App component can conditionally render different things, if that's what you mean.
Can you create a Code Sandbox example the shows what you're trying to do? Then link us to it with an explanation of what's not working?
What do mean by saying "only one component"?
You can render an Array of components too. Or you can provide a Fragment component with many child components.
like:
ReactDOM.render([<App001/>, <App002/>], root)

What do mean by saying "only one component"?
You can render an Array of components too. Or you can provide a Fragment component with many child components.
like:
ReactDOM.render([<App001/>, <App002/>], root));
RenderDOM.render( < App /> ,document.getElementById(' root '));
The answer is that the second call to render replaces the first. If you want to render both Navigation and App, then you should render them both in the same call using either a "fragment" or an array:
RenderDOM.render(
<React.Fragment>
<Navigation />
<App />
</React.Fragment>,
document.getElementById(" root ")
);
Hope this helps!