You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, a quiz is needed, rather than a code task.
That is: a question + a list of options with "choose one" / "choose many".
When a visitor selects the correct answer, then show ✅ ; otherwise ❌ with the feedback text explaining why it's wrong.
How should I implement it?
Astro component, perhaps?
I'd like to try, please sketch out a correct way ;)
The text was updated successfully, but these errors were encountered:
To build a list of options with logic for showing correct answer and description for incorrect answers, you could create a Vite application in the template for this.
Yes, I do need the logic for showing the answer/description.
"Vite application" - any docs or a similar example in the tutorial?
P.S. I've never built Vite apps, but surely can google up and read. So the question is mainly about how to integrate this into tutorialkit without patching.
It's running the quiz application in preview and hiding the code editor. The quiz application itself doesn't have to be built with Vite - any web application works.
Sometimes, a quiz is needed, rather than a code task.
That is: a question + a list of options with "choose one" / "choose many".
When a visitor selects the correct answer, then show ✅ ; otherwise ❌ with the feedback text explaining why it's wrong.
How should I implement it?
Astro component, perhaps?
I'd like to try, please sketch out a correct way ;)
The text was updated successfully, but these errors were encountered: