首页 > 其他 > 详细

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

时间:2019-08-21 01:24:07      阅读:342      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!