I have the element with x-show="localStorage.getItem('hi') == 'hi'". When I change value like localStorage.setItem('hi', 'hello'), The element should be hidden, but it doesn't hide. How can I make the element hide?
I have the element with x-show="localStorage.getItem('hi') == 'hi'". When I change value like localStorage.setItem('hi', 'hello'), The element should be hidden, but it doesn't hide. How can I make the element hide?