Reputation: 8774
What is the best practice to implement a multi step form? I know that there are several different practices, but which one is the best/most performant ?
What are your thoughts? Thanks in advance!!
Upvotes: 1
Views: 209
Reputation: 925
I would go for the second option, because it keeps the children simple and dumb (MVC). The parent component keeps track of all data and which form is currently displayed, which keeps all logic within one component (which makes it easy to update). Performance won't be a problem, because it only displays one form anyway, so the performance is the same as if using a single form.
Upvotes: 2