Answer the question
In order to leave comments, you need to log in
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?
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
Functional component:
Similar class component:
class Example extends React.Component {
render() {
return <Anything />;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question