'DatePicker.RangePicker' cannot be used as a JSX component.
作者:互联网
antd和react在四月份升级后出现问题
'DatePicker.RangePicker' cannot be used as a JSX component.
10:40:52 Its instance type 'Component<RangePickerProps, unknown, any> & CommonPickerMethods' is not a valid JSX element. TS2786
10:40:52 46 | </Form.Item>
10:40:52 47 | <Form.Item label="������������" name="dates">
10:40:52 > 48 | <DatePicker.RangePicker ranges={ranges} />
10:40:52 | ^
10:40:52 49 | </Form.Item>
10:40:52 50 | <div className="searchBtnBox">
10:40:52 51 | <div>
解决办法
https://juejin.cn/post/7085601760600916004
标签:DatePicker,10,used,component,40,52,RangePicker,JSX 来源: https://www.cnblogs.com/JokerAn/p/16139578.html