import React from 'react'; import { Select } from 'antd'; const Option = Select.Option; const d = new Date(); const thisYear = d.getFullYear(); const theOption = []; for (let i = thisYear; i >= 1950; i--) { theOption.push() }; const Yearselect = React.createClass({ onChange(e){ this.props.handleyear(e); }, render() { return ( ) } }); export default Yearselect;