首页 > 解决方案 > 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(未使用反应脚本)它应该工作吗?

标签: react-select

解决方案


推荐阅读