title: ReferenceError visible is not defined
body: <p>i try to do hide/show in react
  I took the code from the internet. But I probably put it in the wrong place.
  please help</p>
  <p>my code
  <a href="https://codesandbox.io/live/4e62cd7f12d" rel="nofollow noreferrer">https://codesandbox.io/live/4e62cd7f12d</a></p>
  <p>where I took the code
  <a href="https://dirask.com/posts/React-how-to-show-or-hide-element-jvorZ1" rel="nofollow noreferrer">https://dirask.com/posts/React-how-to-show-or-hide-element-jvorZ1</a></p>