Explore Library
Code QuizAdvanced

Reading Props in a Component

Spot the mistake in how a component reads its props object.

Codejavascript
function Greeting(props) {
  return <h1>Hello, {name}!</h1>;
}

function App() {
  return <Greeting name="Ada" />;
}

What is the bug in this code?