Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//
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
You can’t perform that action at this time.