You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone, I am trying to implement collapse using react-spring.
I've already seen this codesandbox which should help me find the right direction. But the problem is that the Tree component is completely uncontrolled, whereas I was trying to implement controlled one. So, I ran into several problems that gave me the idea that I was doing something wrong.
As you can see, there are requirements for adding some specific css rules during animation. Perhaps I chose not the best solution, but I do not see others yet.
I would like to know the opinion of the community about this implementation. Thanks guys!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everyone, I am trying to implement collapse using react-spring.
I've already seen this codesandbox which should help me find the right direction. But the problem is that the Tree component is completely uncontrolled, whereas I was trying to implement controlled one. So, I ran into several problems that gave me the idea that I was doing something wrong.
That's what I did (I tried to make it as compact as possible): https://codesandbox.io/s/react-spring-collapse-3d1f8?file=/src/Collapse.js
As you can see, there are requirements for adding some specific css rules during animation. Perhaps I chose not the best solution, but I do not see others yet.
I would like to know the opinion of the community about this implementation. Thanks guys!
Beta Was this translation helpful? Give feedback.
All reactions