Help with app structure for multi-step forms #8377
Unanswered
kinglozzer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all!
I’m looking for some advice on how to structure components for an (in-browser) app I’m building. It’s part of a “product builder”, essentially the visual appearance is something like:
As you can see all of the steps are visible at all times, but their fields are only visible when the step is active. Should I have one component for each route which contains all 4 steps with the applicable active/complete props set? Will that limit what transitions I can use, given that all the steps will be re-rendered when the route changes with that approach?
Or is it possible to have conditional rendering logic at a higher level, so I only need to render the steps once and they can update their own appearance based upon whether they're active/complete?
Any suggestions/tips appreciated!
Additional info:
app/step1value/step2value
etc.Beta Was this translation helpful? Give feedback.
All reactions