From 1bcc33dc0a8c33549175e8e23a13253419bb7e43 Mon Sep 17 00:00:00 2001 From: Emily Kanarek Date: Mon, 16 Jun 2025 14:05:40 -0400 Subject: [PATCH 1/4] Display quiz question list --- src/components/QuestionItem.js | 4 +--- src/components/QuestionList.js | 25 +++++++++++++++++++++++-- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/src/components/QuestionItem.js b/src/components/QuestionItem.js index ab5e8e820..cc1bf0c71 100644 --- a/src/components/QuestionItem.js +++ b/src/components/QuestionItem.js @@ -1,8 +1,6 @@ import React from "react"; -function QuestionItem({ question }) { - const { id, prompt, answers, correctIndex } = question; - +function QuestionItem({ id, prompt, answers, correctIndex }) { const options = answers.map((answer, index) => (