Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 React Quiz Application

This is a React-based Quiz Application where users can test their knowledge by answering multiple-choice questions within a limited time. Each question has a countdown timer, and users must select an answer before the time runs out. Once an answer is selected or time expires, the result is immediately shown. At the end of the quiz, a comprehensive summary of the user's performance is displayed.

🚀 Live Demo

👉 View Deployed Application


📸 Features

  • ⏱️ Timer-Based Questions – Each question has a countdown timer.
  • Instant Feedback – Users get instant feedback whether the answer was right or wrong.
  • Auto Skip – If time runs out, the question is automatically skipped.
  • 📊 Quiz Summary – End-of-quiz summary includes:
    • Number and percentage of correct, incorrect, and skipped questions.
    • Detailed list of each question with selected and correct answers.

🧠 Concepts Practiced

This project was built to sharpen React fundamentals and state management skills:

  • useState – Manage dynamic data like selected answers, score, and timer.
  • useEffect – Handle timer logic and side effects like auto-skipping questions.
  • useRef – Control timer references and prevent unnecessary re-renders.
  • useContext – Share quiz state and functions across multiple components easily.
  • Conditional Rendering – Show/hide question results and summary based on user interactions.
  • Component Structure – Clean modular components for better reusability.

📷 Screenshots

🏁 Quiz Start Page

Start Quiz

📊 Quiz Summary

Quiz Summary


🛠️ Built With

  • React – Frontend Library
  • CSS / Tailwind (if used) – Styling
  • Vite / CRA – Development environment (depending on what you used)
  • GitHub Pages – For deployment

📂 How to Run Locally

git clone https://github.com/AqibNiazi/react-quiz.git
cd react-quiz
npm install
npm run dev # or npm start

📦 Deployment

This project is deployed using Vercel.


🧑‍💻 Author

Aqib Niazi
🔗 GitHub

About

A dynamic quiz application built with React. Users answer timed questions, get instant feedback, and view a detailed performance summary at the end.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages