Skip to content

Instantly share code, notes, and snippets.

@zonayedpca
Created October 21, 2018 10:57
Show Gist options
  • Save zonayedpca/2281b7d35ff81cf322bcd1ac40737e26 to your computer and use it in GitHub Desktop.
Save zonayedpca/2281b7d35ff81cf322bcd1ac40737e26 to your computer and use it in GitHub Desktop.
Main App JS
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