A simple and interactive Quiz App built with React.js and Tailwind CSS, designed to practice state management, user interactions, and frontend styling.
- Multiple-choice questions
- Immediate feedback on correct/incorrect answers with color change
- Track current question and quiz progress
- Display final score at the end
- Responsive layout using Tailwind CSS
- React.js – frontend framework
- Tailwind CSS – utility-first CSS framework for styling
- JavaScript (ES6+) – application logic
- Git – version control and professional commit history
- Clone the repository:
git clone https://github.com/your-username/quiz-app-react.git
cd quiz-app-react- Install dependencies:
npm install- Run the project:
npm run dev- Open your browser at
http://localhost:5173(Vite default) to see the app in action.
- Select an answer for each question.
- Once answered, the button will change color (green for correct, red for incorrect) and be disabled.
- Click "Next Question" to move forward.
- The quiz ends with your final score displayed.
quiz-app-react/
├─ src/
│ ├─ App.jsx # Main component
│ ├─ questions.js # Array of quiz questions
│ ├─ index.css # Tailwind CSS imports and custom styles
├─ public/
├─ package.json
└─ README.md
This project was developed using clear, professional Git commits. Example commits:
feat: setup basic quiz questions and initial App componentfeat: display first quiz question with answer buttons and basic stylingfeat: add next question logic and display final scorefeat: implement answer selection with score tracking and conditional button colors
This project is open source and free to use.