convert jsx to html online code example
Example 1: html to jsx
1) Option One: Online
https://magic.reactjs.net/htmltojsx.htm
or
https://transform.tools/html-to-jsx
2) Option Two: System (assuming you have npm)
npm install html-to-jsx
Example 2: convert jsx to html online
const { DatePicker, Space } = antd;
function onChange(date, dateString) {
console.log(date, dateString);
}
ReactDOM.render(
<Space direction="vertical">
<DatePicker onChange={onChange} picker="month" />
</Space>,
mountNode,
);
Example 3: convert jsx to html online
const { DatePicker, Space } = antd;
function onChange(date, dateString) {
console.log(date, dateString);
}
ReactDOM.render(
<Space direction="vertical">
<DatePicker onChange={onChange} picker="month" />
</Space>,
mountNode,
);