Complete Conditional Rendering
Fill in the Blank Easy
Question
Fill in the blank to show 'Loading...' while isLoading is true.
Code
{isLoading _____ <div>Loading...</div> : <div>Content</div>}
Hint
This is the ternary operator.
Explanation
The ternary operator ? : is the most common way to conditionally render in JSX. When isLoading is true, it shows 'Loading...', otherwise it shows 'Content'.
Related Resources
Related Lessons
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.