so I have an API that returns true or false, based on if the store is open. I want to implement a logic inside a class component such that it will render different component if the store is open, and hide a specific component if the store is closed. If possible i want to do it using className, i just want to hide a class when the store is closed.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…