Hey guys, I am trying to build a multi step ‘calculator’ form for solar energy savings.
It will request certain data from user (for example name, average electricity bill etc). I would like to have routes for each question and have access to state in each step, what is the best way to do it in Next 13? There will be roughly 8 questions or so.
so far, I have two solutions:
- Do it without routing, on a single page
- Do it with context api, I would define it in the sub-layout of the calculator route. This would force all pages to be client components though…
What do you think? All input is massively appreciated.