Question:
I have a condition like this. I want to enable text input if the button is pressed and can edit the text in it. the question is how to make the function in react js?
my Code:
Answer:
UseuseState
hook and onClick
event like in this example.If you have better answer, please add a comment about this, thank you!