11) Option One: Online
2https://magic.reactjs.net/htmltojsx.htm
3or
4https://transform.tools/html-to-jsx
5
62) Option Two: System (assuming you have npm)
7npm install html-to-jsx
1const { DatePicker, Space } = antd;
2
3function onChange(date, dateString) {
4 console.log(date, dateString);
5}
6
7ReactDOM.render(
8 <Space direction="vertical">
9 <DatePicker onChange={onChange} picker="month" />
10 </Space>,
11 mountNode,
12);