subtirelumihail / react-fullpage

A react implementation of fullpage.js
304 stars 105 forks source link

How can I use callbacks like 'afterLoad' in React? #66

Closed Henri-Zhang closed 6 years ago

Henri-Zhang commented 6 years ago

I tried this,

test(anchorLink, index) {
    console.log(anchorLink)
    console.log(index)
  }
let options = { 
       ...
      afterLoad: this.test()
}

I can't get the parameters.