Skip to content

Instantly share code, notes, and snippets.

@zonayedpca zonayedpca/App.js
Created Oct 21, 2018

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