Last active
January 12, 2018 16:09
-
-
Save wongni/20388b357846383524a2f87cf88dabce 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 = async (date) => { | |
const response = await api.getAPOD(date) | |
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