0π
β
To create separate state for your questions
I would simply make a component out of your question. This way every question has its own state.
Of course that leads to the problem of every component having the same template, so you can make a component slot to pass in the unique content for each question. Optionally you can pass the unique content into a question
component with props if the data is small enough.
Source:stackexchange.com