propTypes验证失效

#1

import React, { PropTypes } from ‘react’;
import { Row, Col, Button, Input } from ‘antd’;

const ButtonGroup = Button.Group;

const propTypes = {
download: PropTypes.func.isRequired,
clear: PropTypes.func.isRequired,
setSqlValue: React.PropTypes.func.isRequired,
sql: PropTypes.string.isRequired
};

function ExportDatabaseSearch ({ download, clear, setSqlValue, sql }) {
return (


<Input
type=“textarea”
value={sql}
onChange={(event) => setSqlValue(event)}
placeholder=“Please input sql statement”
autosize={{ minRows: 2 }}
/>



Download
Clear



);
};

ExportDatabaseSearch.propTypes = propTypes;

export default ExportDatabaseSearch;

我的属性验证不起作用 求大神指导

#2

已经解决了, 由于自己引入了压缩的react.min.js文件,压缩的js,去除了属性验证的功能。