ReactQuiz is a React + TypeScript quiz app starter built with Vite.
It includes a polished app shell, quiz state management, reusable UI components, and a starter set of multiple-choice questions so you can extend the experience quickly.
npm install
npm run devnpm run devstarts the development server.npm run buildcreates a production build.npm run previewserves the production build locally.
src/App.tsxrenders the main app shell.src/features/quizcontains the quiz flow.src/hooks/useQuiz.tsmanages quiz state and progression.src/componentscontains reusable UI pieces like buttons, cards, and progress.src/data/questions.tscontains the starter quiz questions.src/styles/global.csscontains the global theme and layout styles.
- Intro screen with a start action.
- Question flow with progress tracking.
- Locked answer selection after choosing an option.
- Score summary at the end of the quiz.
- Responsive dark visual design tuned for a quiz experience.
- Add a timer per question.
- Load questions from a JSON file or API.
- Add categories, difficulty levels, or question randomization.
- Persist high scores in local storage.