Hello I am writing some simple components to learn ReactJS and I have coded myself into a corner I think with this one,
I want to write a component that has a counter (just an integer displayed on the screen, and 4 buttons that, when pressed will add their number to the counter, so pressing number 10 adds 10 to the counter/running total display
I have got this far but I am confused can anyone see what I am doing wrong in the below link:
[https://github.com/JoshuaAdrianJones/freecodecamp/blob/master/1.projects/react_run/src/counter.js]
I was trying to follow this: