Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Old Syntax of Router Switch

import { BrowserRouter as Router, Switch, Route, Link } from "react-router-dom";

<Switch>
    <Route path="/home" component={Home} />
</Switch>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Old #Syntax #Router #Switch
ADD COMMENT
Topic
Name
1+2 =