📜  jsx react - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:05.395000             🧑  作者: Mango

代码示例5
const name = 'Josh Perez';
const element = 

Hello, {name}

; //notice the use of {...} to jump from jsx to javascript. ReactDOM.render( element, document.getElementById('root') );