React - 12. Updating the state -[SOLVED] enscapsulation not working

When I set counterN = {counter} in order to enscapsulate (inside counters.jsx)
and then set this.props.counterN.value and (inside counter.jsx)
I get the error
"index.js:1 Warning: Received NaN for the children attribute.
If this is expected, cast the value to a string. "

Can you please JUST confirm if it’s just me
or the code Mosh teach us is now obsolete? - I use the newest React -
Thanks in advance

[SOLVED] The problem was that I had set counterN={counter}
this.props.counterN.value and (inside counter.jsx)

supposing that counterN in counterN = {counter} was a variable