Answer the question
In order to leave comments, you need to log in
How to pass this.state.coins value from one component to another?
How to correctly pass the value of this.state.coins, which is considered in the Counter file (Counter component) to the HeaderCoins.js file? I think that most likely through props, but I just can’t build the right dependency.
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