Skip to content

Instantly share code, notes, and snippets.

@YuCJ
Last active January 31, 2018 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YuCJ/9df07421d4c29ff3a399b14fba34a2b1 to your computer and use it in GitHub Desktop.
Save YuCJ/9df07421d4c29ff3a399b14fba34a2b1 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 backgroundData = [{/* slide 0 bg */}, {/* slide 2 bg */}, {/* slide 4 bg */}]
const textData = [{/* slide 0 text */}, {/* slide 3 text */}, {/* slide 4 text */}]
const _ = {
map,
}
class App extends React.Component {
render() {
return (
<Viewport>
<Background data={backgroundData} />
<Text data={textData} />
</Viewport>
)
}
}
export default App
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment