Created
October 21, 2018 10:57
-
-
Save zonayedpca/2281b7d35ff81cf322bcd1ac40737e26 to your computer and use it in GitHub Desktop.
Main App JS
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 { Route } from 'react-router-dom'; | |
import Home from './components/Home'; | |
import SinglePage from './components/SinglePage'; | |
import Footer from './components/Footer'; | |
import './App.css'; | |
class App extends Component { | |
render() { | |
return ( | |
<div className="App"> | |
<Route exact path="/" component={Home} /> | |
<Route path="/launch/:id" render={(props) => <SinglePage {...props} />} /> | |
<Footer /> | |
</div> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment