The parameter is the whole props object, so the field must be read from it.
Acceptance criteria
- 1.#root should show Save.
The parameter is the whole props object, so the field must be read from it.
function Button(props) { return <button>label</button> } function App() { return <Button label="Save" /> } 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.