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:

SQL: Generate a range of numbers

SELECT ones.n + 10*tens.n + 100*hundreds.n + 1000*thousands.n FROM       (VALUES(0),(1),(2),(3),(4),(5),(6),(7),(8),(9)) ones(n),      (VALU...