Menu
×
×
正确
function Person(@(5)) {
return <h1>Hi, I'm {@(5).name}!</h1>;
}
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<Person name="Jesse"/>);
function Person(props) {
return <h1>Hi, I'm {props.name}!</h1>;
}
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<Person name="Jesse"/>);
不正确
点击 此处 重试 正确
下一题 ❯function Person(w3exercise_input_no_0) { return <h1>Hi, I'm {w3exercise_input_no_1.name}!</h1>; } const root = ReactDOM.createRoot(document.getElementById('root')); root.render(<Person name="Jesse"/>); |