Skip to content

React Spring v9 useTransition Help #1449

Answered by joshuaellis
tnorlund asked this question in Support
Discussion options

You must be logged in to vote

Have you checked out the docs – https://react-spring.io/hooks/use-transition ?

In short the second argument of useTransition should be the props – you dont need keys anymore, and transitions.map becomes transitions where the arguments are (styles, item), again you don't need the keys, they're applied automatically.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by joshuaellis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1448 on April 22, 2021 17:08.