Last active
January 31, 2018 08:37
-
-
Save YuCJ/b144b59da49ef705e490484069e22915 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 map from 'lodash.map' | |
import React from 'react' | |
import Viewport from './fullpage-slides-viewport' | |
const slidesData = [{/* slide 0 */}, {/* slide 1 */}, {/* slide 2 */}] | |
const _ = { | |
map, | |
} | |
class App extends React.Component { | |
render() { | |
return ( | |
<Viewport> | |
{_.map(slidesData, slidesData => <Slide data={slideData} />)} | |
</Viewport> | |
) | |
} | |
} | |
export default App |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment