问题
在学习react时,尝试打包react的jsx语法文件,但报错了,如下:
Uncaught Invariant Violation: Minified React error #200;
visit https://reactjs.org/docs/error-decoder.html?invariant=200
for the full message or use the non-minified dev environment for full
errors and additional helpful warnings.
截图如下
仔细排查了下原因,原来是我挂载的节点写错了,如我在jsx语法文件是这样写的:
ReactDom.render(
<Search/>, document.getElementById("main")
)
但我要挂载的节点却写成了这样:
<div class="main"></div>
…
别说了我是傻逼,你们看了应该知道问题出在哪了吧~~~~~~