You have already completed these exercises!
Do you want to take them again?
You completed the React Conditionals Exercises from W3Schools.com
Share on:
Which one of these two code blocks is a correct way of adding a conditional statement in React?
function Glass() { return ( <> {5 > 2 && <h2>Hello</h2> } </> );}
function Glass() { return ( <> {5 > 2 &&} <h2>Hello</h2> </> );}