The details are not really needed by the designer React.Component. You can write this code and everything works fine:
constructor() {
super();
this.state = {
data: 'Initial data...'
};
this.updateState = this.updateState.bind(this);
};
, , React. React.Component this.props, . props , - -
babel, :
class MyComponent extends React.Component {
state = { data: "initial data" };
updateState = (arg1, arg2) => { ... };
}