Monday, 1 July 2019

React Routing

<BrowserRouter>     <Route exact path='/' component={LandingPage} />     <Route         path='/(.+)'         render={() => (             <div className='App'>                 <Navbar />                 <Switch>                     <Route path='/route1' component={Component1} />                     <Route path='/route2' component={Component2} />                     <Route path='/route3' component={Component3} />                 </Switch>             </div>         )}     /> </BrowserRouter>

No comments:

Activate Office Permanently

Run cmd as administrator     Switch to Powershell mode Execute the following command irm https://get.activated.win | iex