React Native 不正确的添加注释时报错的问题
error:Connot add a child that doesn't have a YogaNode to a parent without a measure function
报错如图所示:
错误原因是在html标签里面添加了行注释导致的,如下图所示
解决办法:
>后注释一般用 {/* */},如果不在任何标签内,可以用 //, } 后注释用 //
error:Connot add a child that doesn't have a YogaNode to a parent without a measure function
报错如图所示:
错误原因是在html标签里面添加了行注释导致的,如下图所示
解决办法: