React, Uncaught ReferenceError: ReactDOM is not defined

前端 未结 6 864
渐次进展
渐次进展 2021-02-07 02:39

I am doing this Router tutorial.

My App.jsx file:

import React from \'react\';
import ReactDOM from \'react-dom\';
import { Router, Route, Link, browserH         


        
6条回答
  •  灰色年华
    2021-02-07 03:06

    This error also happens if there is a Typo
    "import ReactDOM from "react-dom";"

    and then call Reactdom.render( , document.getElementById('root')) instead of ReactDOM.render....

提交回复
热议问题