Complete a Function Component
Fill in the Blank Beginner
Question
Fill in the blank to make this a valid React component that returns an <h1>.
Code
function Welcome() {
_____ <h1>Hello World</h1>;
}
Hint
A function component must return JSX.
Explanation
Every function component must return JSX (or null). The return keyword is required to send the JSX back to React for rendering.
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.