DEV Community

ivkeMilioner
ivkeMilioner

Posted on

Deconstruction to not work

Deconstruction to not work

function QuziLogic({
  currentQuestion, questions, handleAnswerOptionClick, countDownBarWith, totalTime,
}) {
  return (
    <>
      <div className={styles.questionCount}>
        <p className={styles.questionText}>What is the output?</p>

        <p className={styles.questionText}>
          Question
          {currentQuestion + 1}
          /
          {questions.length}
        </p>
      </div>
Enter fullscreen mode Exit fullscreen mode

Discussion (1)

Collapse
emmiep profile image
Emmie Päivärinta

Can you show where you use the component? It's probably a problem there rather in than in the component itself.