📜  jsx 中的 javascript - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:20.532000             🧑  作者: Mango

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

Hello, {name}

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