Answer the question
In order to leave comments, you need to log in
How to bind components in React?
I just recently started learning React so I have a question.
I have an App file which has an element and a Button file with a similar component. How to connect App and Button so that when the button is clicked, the value of element , which is in the App, changes (for example, one is subtracted from the value)?
Sandbox
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question