class PlayerControls extends React.Component { constructor(props) { super(props) this.state = { loopActive: false, shuffleActive: false, }
in my case this was the solution = () => {}
methodName = (params) => { //your code here with this.something }