Srinivaskoruprolu007 / quiz-api

0 stars 1 forks source link

Unable to render special characters #1

Open Srinivaskoruprolu007 opened 2 days ago

Srinivaskoruprolu007 commented 2 days ago

`

{currentQuestion ? ( <>

{currentQuestion.question}
      <div className="Options">
        {shuffledOptions.map((option, index) => (
          <button
            key={index}
            className={`option-button ${selectedOption === option ? 'selected' : ''}`}
            onClick={() => handleOptionClick(option)}
          >
            {option}
          </button>
        ))}
      </div>
      <div className="quiz-navigation">
        {currQuestion === questions.length - 1 ? (
          <button className="next-button" onClick={finishQuiz} disabled={!selectedOption}>
            Finish Quiz
          </button>
        ) : (
          <button className="next-button" onClick={nextQuestion} disabled={!selectedOption}>
            Next Question
          </button>
        )}
      </div>
    </>
  ) : (
    <p>Loading questions...</p>
  )}
</div>`

Need to update the question rendering with special characters also
prasadkilaparthi commented 2 days ago

Assign to me, i will look into it