score:1

class Counter extends React.Component {
  render() {

    return (
      <div>
        <div>{this.props.display}</div>
        <button onClick={this.props.func}>+</button>
      </div>
    );
  }
}

Related Query

More Query from same tag