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

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 {} and set a value={this.props.integer} and I’ve tried targeting it by doing


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:

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