Menu
×
×
Correct!
Exercise:Use the correct logical operator to complete the following component.
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 />);
Not CorrectClick here to try again. Correct!Next ❯ |
This will reset the score of ALL 24 exercises.
Are you sure you want to continue?