The effect body was never wrapped in useEffect.
Acceptance criteria
- 1.#value should show mounted.
The effect body was never wrapped in useEffect.
function App() { const [msg, setMsg] = React.useState("waiting") return <p id="value">{msg}</p> } 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.