Unit C · A page somebody else can use
What we are making: buttons that look like buttons, say what they do, and confirm that they did it.
Last session's page had a link saying OPEN and another saying SHUT.
Fine. But what does the page show when the gate is already open? If the OPEN button is still
there, looking exactly the same, the visitor has no idea whether anything happened.
The fix is the state variable you wrote in session 11. The page knows. It should show it.
In this session