So at the beginning I know this code is messy. I have a div that I want to copy, when I click on the div, it opens up a Content and it copies that div. The thing I can't seem to accomplish is this, In that copied version of div/Image, I can close the content, but when I press on it again, I can't seem to open the component. If you don't fully understand it here is the sandbox https://codesandbox.io/s/confident-lake-uovir?file=/src/App.js