react-select - 2.1.2 版本是否与 React 15.5.4 兼容
问题描述
继续获得
show.self-a51f3f9200fc591428c13c03c87192475aa12504d581675df08c22f4a3799533.js?body=1:97366 Uncaught TypeError: custom is not a function
this.getStyles = function (key, props) {
var base = _styles.defaultStyles[key](props);
base.boxSizing = 'border-box';
var custom = _this7.props.styles[key];
return custom ? **custom(base, props)** : base;
};
当尝试将 react-select 2.1.2 与 React 15.5.4 一起使用时,React-dom 15.5.4(未使用反应脚本)它应该工作吗?
解决方案
推荐阅读
- reactjs - 如何在 React 中渲染之前检测道具变化?
- local-storage - localStorage 始终在一个键中设置值
- python - 为什么 asyncio.sleep() 似乎暂停了使用 create_task() 创建的协程?
- r - 如何在 R 中使用 depmixS4 包训练和测试模型?
- node.js - Twilio 可编程聊天 getChannelByUniqueName 引发“禁止”错误
- javascript - 使用 .toArray() 后如何将为数组构建的代码应用于图像集合?
- servlets - 在 HttpSessionListener 中设置时,Spring 会话中缺少会话属性
- python - 如何在 django 中过滤 * 交集 * 的 manytomany 字段?
- formula - 快报Databand中的公式字段
- javascript - 如果我在 JavaScript 中使用 import *,如何访问类名?