Need Help With React - Not able to target the value only target.id?

I am able to get integer if I set it as the id and target it that way, but I want to set my id as {this.props.id} and set a value={this.props.integer} and I’ve tried targeting it by doing e.target.value.

<h1
value={this.props.integer}
 onClick={this.props.handleClick}
 id={this.props.id}
        >
          {this.props.integer}
        </h1>

How can I target the value here? Using the onClick.

Hello there,

h1 is not a clickable element. So, I would start by suggesting you use a different element.

Otherwise, there is still the issue that h1 elements do not have the value attribute: https://www.w3schools.com/tags/tag_hn.asp

What are you trying to achieve? Would you mind providing more code? (preferably, a link to your project)