I have a div that is hidden by the css, (display: none), when I click a button I want it to display (document.getElementById("invite").style.display = "block";
but this code does apparently only work on elements that aren't hidden by the css (if I do document.getElementById("invite").style.display = "none";
to hide it and then call the "block" on it it gets visible again. But for some reason it doesn't work for elements hidden by css, anyone know why and how I can show elements hidden with React?
Edit: Might be worth mentioning that the css attribute has !important after it.