The Live version of our project can be found here
The source code is totally open source. Any one can contribute to it. The Project can be found here
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
import App from './App'; | |
import * as serviceWorker from './serviceWorker'; | |
import { BrowserRouter } from 'react-router-dom'; | |
ReactDOM.render( | |
<BrowserRouter basename="nasa-rocket-launch"> | |
<App /> | |
</BrowserRouter> | |
, document.getElementById('root')); | |
// If you want your app to work offline and load faster, you can change | |
// unregister() to register() below. Note this comes with some pitfalls. | |
// Learn more about service workers: http://bit.ly/CRA-PWA | |
serviceWorker.unregister(); |
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; |
SpaceApps is a NASA incubator innovation program.