Quiz Demo
This page demonstrates how to use the component: ReviewQuiz
.
- Create your quiz question as a separate js file, e.g:
./quiz-questions/questionsWeekOne.js
- Export questions as constants, with its content obeying quizdown syntax. See documentation for syntax info.
- Remember to escape backtick (`) character
- Import it in the markdown file:
import ReviewQuiz from "@site/src/components/ReviewQuiz";
import { QUESTION_ONE, QUESTION_TWO } from "./quiz-questions/questionBank.js";
- Then pass the question as content:
<ReviewQuiz content={reviewQuestionOne()} />
This will result in a Begin Quiz button below, which you can use to try the quiz.