# Uncaught TypeError: __WEBPACK_IMPORTED_MODULE_0_react__.createContext is not a function
# 解决方案参考: https://stackoverflow.com/questions/54521723/react-default-createcontext-is-not-a-function-when-using-react-redux
npm update react react-dom
@switchPrefixCls: standard-switch; // 变量类名
@duration: .3s; // 属性变量名
.@{switchPrefixCls} {
position: relative;
transition: all @duration cubic-bezier(0.35, 0, 0.25, 1);
}
$switchPrefixCls = 'standard-switch';
// 或者是
// $switchPrefixCls: standard-switch;
$switchPrefixClsBtn: '#{$switchPrefixCls}-btn';
$duration: .3s;
.#{$switchPrefixClsBtn} {
position: relative;
transition: all $duration cubic-bezier(0.35, 0, 0.25, 1);
}
# install dependencies
npm install
# recommended install dependencies
cnpm install
# serve with hot reload at http://localhost:12347/#/main/tworesponsibilities/index
yarn run dev
# rebuild it
yarn run build
- If you like it, please give me a star.
- If you don't like it, please give me suggestions.(1835812864@qq.com)
- Thank you very much.