Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyReactembedding expressionsSingle-choice MCQ

A teammate writes the JSX below and gets a runtime error. Why?

function Profile() { const user = { name: 'Sam', age: 30 }; return <div>{user}</div>; }