class Block extends React.Component {
constructor(props) {
super(props);
this.state = {
info: 12
};
}
handleClick() {
console.log(this.state.info);
}
render() {
return (
<div onClick={this.handleClick.bind(Block)}>Info</div>
);
}
}