Missing information in the docu! #1520
Unanswered
DariusPlaczek
asked this question in
Support
Replies: 1 comment 3 replies
-
It's the data you want to use to animate with. Typically I imagine it would be an array, but it could be a boolean or string and changing the item would therefore trigger an animation. Configs, check out this https://react-spring.io/common/configs#presets |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I have now discovered React Springt and have a question because the documentation doesn't really describe the problem. In the code "useTransition" there is a const [items, setItems] = useState(NUM_TRANS).
What is NUM_TRANS? Is it an array, a string, number?
Or what is written in the useState?
And where do you get config.molasses? Is it imported? It is not described anywhere on the page.
https://react-spring.io/hooks/use-transition#you-can-transition-arrays
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions