Reactjs – onpress not calling function in react js
I am trying to call a function when a button is pressed but nothing happens. I added a console.warn() in the function but it is never printed. Have changed similar stack overflow answers but I still can't figure it out.…