A
A
albertalexandrov2018-11-09 20:32:08
React
albertalexandrov, 2018-11-09 20:32:08

Initial rendering in react?

Hello everyone!)
There is a code https://codepen.io/anon/pen/OaXgMO . Now, when the components are initially rendered, the second one inputdisplays the string [object Promise], however, I expect an empty string. How to make it so that a string is displayed there, and when entering numbers in the first one input, the doubled entered first value is displayed in the second?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly Zharov, 2018-11-09
@albertalexandrov

like this https://codepen.io/anon/pen/KrMXPW
don't know how long anonymous pen live

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question