liferay-labs-br / fiber

The framework specialized in animated components.
MIT License
5 stars 4 forks source link

Passing value of type number in children does not render #29

Closed matuzalemsteles closed 7 years ago

matuzalemsteles commented 7 years ago

Current behavior

When I pass in my node some number via JS to be rendered, simply appendChild ignores.

<p>Count: {this.state.count}</p>

Result:

<p>Count:</p>

Expected behavior

The solution is to convert that number to String, the expected behavior would be the fiber convert to me.

<p>Count: {this.state.count}</p>

Result:

<p>Count: 0</p>
ray-bot[bot] commented 7 years ago

Hey, Your issue has been resolved 🎉, Thanks!