U
U
uzi_no_uzi2019-04-20 19:19:34
React
uzi_no_uzi, 2019-04-20 19:19:34

How to set up React Fullpage.js in a class?

The documentation for the plugin shows how to hook it up with a functional component, but what if I need to hook the plugin up to a class?
5cbb4638cee0f311348324.jpeg

import React from 'react';

export default class Scroll extends React.Component {

    constructor() {
    super();
    }
    
    render() {



        return(
            <div></div> 
        )
        
    }

}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2019-04-20
@uzi_no_uzi

Functional component: Similar class component:

class Example extends React.Component {
  render() {
    return <Anything />;
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question