useTransition Custom Component #1209
Unanswered
MikeAlvarado
asked this question in
Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! We are implementing react-spring on a project.
The way we are doing things is we have a component called
FormPagethat is displayed on a viewPetThe way it works atm is
Petwith a switch case, renders differentFormPagee.g.
I have a doubt on which is the best way to implement a simple transition like here without using a map. (?)
My thoughts were either always animate
FormPageor implement useTransition on a switch ase, case as shown here (the problem is thatTransitionis deprecated).formPageis a helper view that renders child components passed onpet.The approach I tried was to animate the whole component, but it wasn't working.
formPage is structured like this:
Thanks in advance!
Edits: Typos and redaction.
Beta Was this translation helpful? Give feedback.
All reactions