Description

A component shows either a secret message or a hide button. Clicking the button should toggle visibility. It never toggles — the message stays hidden forever.

Anomaly

The button says "Show Secret" and clicking it does nothing. The secret message never appears.

Constraint
Fix only the useState initial value and the toggle logic
Do not restructure the JSX
Hint
Consult the SenseiOnly for those truly stuck · Flip to reveal

A toggle should derive its next value from its current value — not set it to a constant.

Loading editor…
Correct Solution
Loading...
Expected OutputGoal State
Your OutputLive