|
Menu
×
×
正确!
REACT - 代码练习:使用正确的逻辑运算符完成以下组件。
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 />);
不正确点击 这里 再试一次。 正确!下一个 ❯ |
这将重置所有 88 个练习测验的分数。
您确定要继续吗?