Components in React that are wrapped by Router components (introduced by non-Route components) call the component's render? every time the address changes

related codes

<BrowserRouter>
    <div className="App">

      <Link to="/"></Link>
      <Link to="/news"></Link>
 
      <Route exact path="/" component={Home} />
      <Route path="/news" component={News} />
      
      <SiderBar></SiderBar>
      
    </div>
</BrowserRouter>

when I click "go to the home page" and "go to the news" to switch back and forth, the render function of the SiderBar component will be called. Why? And the render function that returns the BrowserRouter component is not called repeatedly.

Mar.28,2021

Yes. render will definitely trigger.
triggers and means that the page dom is re-rendered.
so it doesn't matter. render just render .

Menu