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
After many attempts, I found out. Only I did not use the <Text> component. The problem will appear.
If I import the <Text> component and render some text(include empty string) casually. The problem does not appear anymore
I see that <p> will be rendered as <View>. <span> will be rendered as <Text>.
Taro currently does not support the use of HTML tags to render mini-program. If it is only used on the web, it is feasible to skip our code detection run by injection. However, please note that this writing method will not be officially supported.
相关平台
微信小程序
复现仓库
https://github.com/yinxin630/render-html-bug
小程序基础库: 2.13.0
使用框架: React
复现步骤
yarn install
yarn dev:weapp
期望结果
render
<span>
tag实际结果
<span>
tag not be rendered环境信息
The text was updated successfully, but these errors were encountered: