Next.js Discord

Discord Forum

displaying multiple screens on same route conditionally

Unanswered
ABUL KALAM posted this in #help-forum
Open in Discord
I am working on a Next.js project and currently, I am creating a form consisting of 3 steps(screens). On each screen, the user provides some input and based on that input, he/she is given options on next page. I am currently planning to use a single route for this purpose and display the screen and data based on searchParams conditionally like {screen=1 && <Screen1 />}.

I just want to know if this is good and if not, what's the recommend approach?

2 Replies

Netherland Dwarf