They are shown when you run the tests. Until then they appear as a hidden requirement.
Build a button that shows and hides a block of details. You practice boolean state and conditional rendering.
Show details, Hide details and Here are the details: the tests use them.Show details.Here are the details appears and the button changes to Hide details.aria-expanded.Show details button.Hide details.If something is open or closed, a boolean in useState is enough.
To show something only sometimes, use {condition && <element />}.
The button text also comes from that same state: you do not need another one.
useState with a boolean.The console is empty
Run your code with Ctrl+S
This console starts empty every time the preview loads. The browser's DevTools console keeps the messages with Preserve log.