fullpage in react

Solutions on MaxInterview for fullpage in react by the best coders in the world

showing results for - "fullpage in react"
Chloé
25 Oct 2017
1import React from 'react';
2import ReactDOM from 'react-dom';
3import ReactFullpage from '@fullpage/react-fullpage';
4
5const fullpageOptions = {
6  anchors['page1','page2','page3']
7};
8
9const FullpageWrapper = fullpageProps => (<ReactFullpage
10  {...fullpageProps}
11  render={({ state, fullpageApi }) => {
12    return (HTML_HERE);
13  }}
14/>);
15
16ReactDOM.render(<FullpageWrapper {
17    ...fullpageOptions
18} />, document.getElementById('react-root'));