Skip to content

Tag: reactjs

How to access the value of x after onclick is run

I have this code: I am attempting to make a “safe” with a number pad. In order to open the safe, the user must enter a specific code in order to “open it”. Currently, I am working on showing what the user has input through the number pad onto the display. However, I am unsure on how to…