不使用 JSX 渲染 <p> 元素。
const paragraph = React.createElement(@(1), {}, 'This is a paragraph without using JSX!');
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(paragraph);
const paragraph = React.createElement(p, {}, 'This is a paragraph without using JSX!');
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(paragraph);
const paragraph = React.createElement(P, {}, 'This is a paragraph without using JSX!');
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(paragraph);