Last active
January 12, 2018 16:10
-
-
Save wongni/b6512a66f7f666d7b68c433f7b7a4761 to your computer and use it in GitHub Desktop.
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 ViewerTemplate from './components/ViewerTemplate' | |
import SpaceNavigator from './components/SpaceNavigator' | |
import Viewer from './components/Viewer' | |
import * as api from './lib/api' | |
class App extends Component { | |
getAPOD = (date) => { | |
api.getAPOD(date).then((response) => { | |
console.log(response) | |
}) | |
} | |
componentDidMount () { | |
this.getAPOD() | |
} | |
render() { | |
return ( | |
<div> | |
<ViewerTemplate | |
spaceNavigator={<SpaceNavigator />} | |
viewer={( | |
<Viewer | |
url="https://www.youtube.com/embed/uj3Lq7Gu94Y?rel=0" | |
mediaType="video" /> | |
)} /> | |
</div> | |
) | |
} | |
} | |
export default App |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment