Menu
×
×
正确
function App({isLoggedIn}) {
return (
<>
<h1>My Application</h1>
{isLoggedIn @(2) <Profile /> }
</>
);
}
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<App />);
function App({isLoggedIn}) {
return (
<>
<h1>My Application</h1>
{isLoggedIn && <Profile /> }
</>
);
}
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<App />);
不正确
点击 此处 重试 正确
下一题 ❯function App({isLoggedIn}) { return ( <> <h1>My Application</h1> {isLoggedInw3exercise_input_no_0<Profile /> } </> ); } const root = ReactDOM.createRoot(document.getElementById('root')); root.render(<App />); |