import React, { useState } from 'react'; import Question from './Question'; import 'bootstrap/dist/css/bootstrap.min.css'; import '../App.css'; function Questions({ questions }) { const [currentQuestion, setCurrentQuestion] = useState(0); const [score, setScore] = useState(0); const handleNextQuestion = () => { setCurrentQuestion(prevQuestion => prevQuestion + 1); }; return (
{questions.length > 0 && currentQuestion < questions.length ? ( ) : (

No more questions!

)}
); } export default Questions;