Is there a way to render only some components in Reactjs
class UserproPage extends Component{
render(){
return(
<>
<Topbar/>
<Navbar/>
<div>
<h1>Hello</h1>
</div>
</>
)
}
The <Navbar/> has menu button that are common to all the pages hence I do not want it to render them every time I click on links on the menu.