Answer the question
In order to leave comments, you need to log in
Why write .toString() when migrating to react 16?
Good afternoon! Who knows what gives in this .toString()
and what it is for?
Without this, the console does not give any errors.
<span className={b('text').toString()}>{props.value}</span>
<span className={b('text')}>{props.value}</span>
Answer the question
In order to leave comments, you need to log in
Well, from the logical options, I think that for the reliability of the value returned by the b () function;
If it comes to that, in order to at least understand something, it was necessary to show the function itself, what was eventually rendered, etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question