Skip to content

Instantly share code, notes, and snippets.

@YuCJ
Last active January 31, 2018 08:37
Show Gist options
  • Save YuCJ/b144b59da49ef705e490484069e22915 to your computer and use it in GitHub Desktop.
Save YuCJ/b144b59da49ef705e490484069e22915 to your computer and use it in GitHub Desktop.
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