码迷,mamicode.com
首页 > 其他好文 > 详细

Uncaught TypeError: _react2.default.createContext is not a function

时间:2019-08-20 23:54:35      阅读:177      评论:0      收藏:0      [点我收藏+]

标签:for   fun   typeerror   type   erro   create   func   before   def   

question is caused by react version, update your react version, it will be ok.
use "npm update react" and ""npm update react-dom""


//before:
"react": "^16.2.0",
"react-dom": "^16.2.0",


//after update:
"react": "^16.6.3",
"react-dom": "^16.6.3",

Uncaught TypeError: _react2.default.createContext is not a function

标签:for   fun   typeerror   type   erro   create   func   before   def   

原文地址:https://www.cnblogs.com/begin256/p/11386315.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!