How to add a quiz to page?
Answered
Great black wasp posted this in #help-forum
Great black waspOP
I stumbled upon this page and am curious about this quiz. I would like to understand how it is implemented and functions. Shed some light on it as I am a beginner eager to learn.
https://nextjs.org/learn/dashboard-app/adding-search-and-pagination
https://nextjs.org/learn/dashboard-app/adding-search-and-pagination
Answered by B33fb0n3
you can do it via a client component. But you have still 2 options:
1. Render the full quiz as client component (easy)
2. Create a client component around the rendered answers. The rendering is full serverside and the functionality is full clientside (harder)
Maybe there is also a third option or even a fourth... @Great black wasp
1. Render the full quiz as client component (easy)
2. Create a client component around the rendered answers. The rendering is full serverside and the functionality is full clientside (harder)
Maybe there is also a third option or even a fourth... @Great black wasp
6 Replies
you can do it via a client component. But you have still 2 options:
1. Render the full quiz as client component (easy)
2. Create a client component around the rendered answers. The rendering is full serverside and the functionality is full clientside (harder)
Maybe there is also a third option or even a fourth... @Great black wasp
1. Render the full quiz as client component (easy)
2. Create a client component around the rendered answers. The rendering is full serverside and the functionality is full clientside (harder)
Maybe there is also a third option or even a fourth... @Great black wasp
Answer
@B33fb0n3 you can do it via a client component. But you have still 2 options:
1. Render the full quiz as client component (easy)
2. Create a client component around the rendered answers. The rendering is full serverside and the functionality is full clientside (harder)
Maybe there is also a third option or even a fourth... <@694572667046461491>
Great black waspOP
could you share any ref site with step by step guide, thanks
@Great black wasp could you share any ref site with step by step guide, thanks
for which option? 1 or 2?
@B33fb0n3 for which option? 1 or 2?
Great black waspOP
1
the easy way is alwasy good 🙂