I have the following react component:
<HashRouter>
<div className="App">
{/* Static section */}
<div>
<NavBar title="MyApp" />
</div>
{/* Dynamic section */}
<div>
<Route path="//" component={HomePage} />
<Route path="/market" component={MarketPage}/>
</div>
</div>
</HashRouter>
And the NavBar
component is expecting render children components that will represent the websites content as per Ant designs component. My question is how can I render my child components inside the navbar component without re-rendering the navbar again? I have a {this.props.children} inside the navbar but I don't know where to inject the prop without forcing the navbar to render again.