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
First of all, your buttons don't currently do anything when clicked, so what we're going to need to do is add an onClick to each of your buttons: C.
C
This will pass the event to handleInput.
handleInput
To get the value of the button clicked we can do:
handleInput(el) { console.log(el.target.value); }