Skip to content

Instantly share code, notes, and snippets.

@karenying
Last active November 22, 2020 01:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karenying/d1624411821fdbac4eae1b248becbdfa to your computer and use it in GitHub Desktop.
Save karenying/d1624411821fdbac4eae1b248becbdfa to your computer and use it in GitHub Desktop.
import { BrowserRouter as Router, Route } from 'react-router-dom';
function App() {
return (
<div className='App'>
<Router>
<Route exact path='/' component={Home} />
<Route exact path='/home' component={Home} />
<Route exact path='/about' component={About} />
<Route exact path='/contact' component={Contact} />
</Router>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment