Skip to main content
React Code Completion Easy +10 XP

JSX Return

Complete the functional component.

ReactFill in the blank
function Hello() {
  ___ <h1>Hello World</h1>;
}

Type the missing code

Show answer and explanation

Answer: return

React functional components must return JSX. The return keyword sends the JSX to be rendered.

Hint: Functions need to return their output.

What this challenge tests

Code Completion in React: components, jsx.

Related challenges