Created
August 14, 2017 14:15
-
-
Save DZuz14/a1904723d82dcf2cfd91211cf4060a70 to your computer and use it in GitHub Desktop.
App Routes
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 React, { Component } from 'react' | |
import Home from './Home' | |
import About from './About' | |
import { Route } from 'react-router-dom' | |
require('./style') | |
export default class App extends Component { | |
render() { | |
return ( | |
<div className="app"> | |
<Route path="/" exact component={Home} /> | |
<Route path="/about" component={About} /> | |
</div> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment