Created
November 15, 2017 23:20
-
-
Save eh3rrera/98b42941b684c38a4019f4a019d93d0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// … | |
import { | |
Route, | |
Link | |
} from 'react-router-dom' | |
import Home from './components/Home'; | |
import About from './components/About'; | |
import Messages from './components/Messages'; | |
class App extends Component { | |
render() { | |
return ( | |
<div className="App"> | |
... | |
<div className="menu"> | |
... | |
</div> | |
<div className="App-intro"> | |
<Route path="/" component={Home}/> | |
<Route path="/messages" component={Messages}/> | |
<Route path="/about" component={About}/> | |
</div> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment