Sorry if this topic it\'s probably a copy of another one, but i don\'t understand what i\'m doing wrong with my code + i\'m really new to react. I tried several solutions bu
You could use the event object. Something like:
event
handleInput = e => { const buttonValue = e.target.value; console.log(buttonValue); //some logic }
And then you could add the method on the onClick event, passing the event object as well.
onClick = {this.handleInput}