A
A
Alexey Orlov2020-08-16 00:43:59
JavaScript
Alexey Orlov, 2020-08-16 00:43:59

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

1 answer(s)
W
Wigard, 2020-08-16
@Wigard

Timer in App.js and from there to Counter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question