Passing the object as one prop is not the same as spreading it.
Acceptance criteria
- 1.#root should show Ada engineer.
Passing the object as one prop is not the same as spreading it.
function Person({ label, role }) { return <p>{label} {role}</p> } function App() { const person = { label: "Ada", role: "engineer" } return <Person person={person} /> } const root = ReactDOM.createRoot(document.getElementById("root")) root.render(<App />)
Output ready when you are
Press Run to render your code, or Submit to validate your solution.