× react报错:TypeError: Cannot read property ‘render‘ of undefined

TypeError: Cannot read property 'render' of undefined

同样的报错可能是各种各样的原因造成的,我的这次是引入ReactDom时,加了花括号。

× react报错:TypeError: Cannot read property ‘render‘ of undefined

错误示范:注意 第2 行

× react报错:TypeError: Cannot read property ‘render‘ of undefined

正确示范:注意 第2 行

× react报错:TypeError: Cannot read property ‘render‘ of undefined