I'm trying to make react navigate to an external link from a route. I don't feel like adding an restyling the header.
<Switch>
   <Route exact path='/'>
       <PageLayout>
           <LandingPage />
        </PageLayout>
   </Route>
   <Route exact path='/example'>
      <a href="www.example.com" />
   </Route>
</Switch>
  
I'm just looking for the simplest way to do this. I don't want to have to restyle the header.
Preferably it would open up a new page.
Edit I've also tried
<Route exact path='/example'>
 <Redirect to='https://www.example.com' />
</Route>
          
 
    
 
    