/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import React from 'react'; import { Router, Route, Link, hashHistory } from 'react-router'; const Links = () => <nav> </nav> const App = () => { return ( <Router history={ hashHistory }> <Route path="/" component={ Home }> <Route path="about" component={ About }> {/* <Route path="/contact" component={ Contact }></Route> */} <Route path="contact" component={ Contact }></Route> </Route> </Route> </Router> ) }; export default App;