taro报错The tag 「view」 is unrecognized in this browser. If you meant to render a React component, star

报错截图

react-dom.development.js?61bb:88 Warning: The tag is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.
taro报错The tag 「view」 is unrecognized in this browser. If you meant to render a React component, star_第1张图片

报错代码

taro报错The tag 「view」 is unrecognized in this browser. If you meant to render a React component, star_第2张图片

错误分析

taro报错The tag 「view」 is unrecognized in this browser. If you meant to render a React component, star_第3张图片
原因:在taro,react组件名要大写,将view标签变成View就ok了

修正错误

taro报错The tag 「view」 is unrecognized in this browser. If you meant to render a React component, star_第4张图片
错误解决

你可能感兴趣的:(taro-多端开发)