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
-
Hi! We are implementing react-spring on a project.
The way we are doing things is we have a component called
FormPage
that is displayed on a viewPet
The way it works atm is
Pet
with a switch case, renders differentFormPage
e.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
FormPage
or implement useTransition on a switch ase, case as shown here (the problem is thatTransition
is deprecated).formPage
is 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