Reactjs – Transition not working without setTimeout in useEffect
I have one small component, with some text. In useEffect, I am simply setting the top of the element to some values. CSS: .box { display: flex; flex-direction: column; position: relative; top: 0; transition: top 0 ease-in; } useEffect(() =>…