Skip to content

Trying to migrate a sandbox from v8 to v9 with no success #1819

Answered by joshuaellis
lucax88x asked this question in Support
Discussion options

You must be logged in to vote

Hey @lucax88x,

I would probably avoid using state to save the previous tab, why not use a Ref?

See this sandbox: https://codesandbox.io/s/react-spring-tabs-with-direction-forked-w9up3?file=/src/Tabs.tsx

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by lucax88x
Comment options

You must be logged in to vote
1 reply
@joshuaellis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants