title: How to remove active class with click in my case
body: <p>I wanted to make a gallery of Unsplash images and provide a full-screen image when the user will click on a small image. I make a modal window, which appears when the user clicking on the small image, and I wanted to close it when it clicks to any place in such a modal window. I make the anonymous function which must change my active to false, but when I clicked nothing happened.</p>
  <p>Here is the code - <a href="https://stackblitz.com/edit/react-jis6bz" rel="nofollow noreferrer">https://stackblitz.com/edit/react-jis6bz</a></p>