You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below is the babel output of the class for both applications. Note how in next 5 both this.props.color expressions, that is, the style interpolation and the div children, are compiled to _this2.props.color. However, in next 7, the style interpolation is compiled to this.props.color while the div children is compiled to _this.props.color.
The interpolation below works in next v5 but since v6 (which uses babel 7) it throws a
TypeError: Cannot read property 'props' of undefined
.Sample apps
Details
Below is the babel output of the class for both applications. Note how in next 5 both
this.props.color
expressions, that is, the style interpolation and the div children, are compiled to_this2.props.color
. However, in next 7, the style interpolation is compiled tothis.props.color
while the div children is compiled to_this.props.color
.Compiled class in next 5 app
Compiled class in next 7 app
The text was updated successfully, but these errors were encountered: