react fullpage code example
Example: fullpage in react
import React from 'react';
import ReactDOM from 'react-dom';
import ReactFullpage from '@fullpage/react-fullpage';
const fullpageOptions = {
anchors['page1','page2','page3']
};
const FullpageWrapper = fullpageProps => (<ReactFullpage
{...fullpageProps}
render={({ state, fullpageApi }) => {
return (HTML_HERE);
}}
/>);
ReactDOM.render(<FullpageWrapper {
...fullpageOptions
} />, document.getElementById('react-root'));