Uncaught Error: _registerComponent(...): Target container is not a DOM element

Uncaught Error: _registerComponent(...): Target container is not a DOM element


就是一个找不到DOM节点的问题。

改成:

ReactDOM.render(, document.getElementById("App"));

你可能感兴趣的:(Uncaught Error: _registerComponent(...): Target container is not a DOM element)