diff --git a/webapp/src/components/QuestionComponent.js b/webapp/src/components/QuestionComponent.js index 6650839..a251b6a 100644 --- a/webapp/src/components/QuestionComponent.js +++ b/webapp/src/components/QuestionComponent.js @@ -1,15 +1,16 @@ import React from 'react' -function QuestionComponent({id}) { - const mcq = { - ques:"1. What does a circular road sign with a red border and a white center indicate?", - ans:["Yield to oncoming traffic", "No entry","Give way to pedestrians","Speed limit ahead"] - } +function QuestionComponent({id , mcq}) { + // const mcq = { + // ques:"1. What does a circular road sign with a red border and a white center indicate?", + // ans:["Yield to oncoming traffic", "No entry","Give way to pedestrians","Speed limit ahead"] + // } return (
-
{mcq.ques}
+
{mcq.question}
+ {/*
{mcq}
*/}