Up in my component I have:
let isClicked = false;
Down where things are rendered I have:
<div className="relative">
{!isClicked ? (
<div className="relative">
1
</div>
) : (
<div className="relative">
2
</div>
)
}
</div>
The issue is nothing changes when the variable changes. I can ensure the variable changes on the command line. And the logic works if I change it and manually reload the page.
The issue is it won't re-render when the variables changes during the run time.