Categories
Explain what super(props) and also .bind(this) are for?
class ClickButton extends React.Component { constructor(props) { super(props); this.state = {class: "off", label: "Нажми"}; this.press = this.press.bind(this); } }
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question