The condition reads the wrong flag, so the box is always left out.
Acceptance criteria
- 1.The box should be rendered.
The condition reads the wrong flag, so the box is always left out.
function App() { const shown = true const hidden = false return ( <div> <p id="value">box shown</p> {hidden && <div className="box">box</div>} </div> ) } 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.