Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kadirkarabacak/react-quiz-app

React Quiz-App
https://github.com/kadirkarabacak/react-quiz-app

Last synced: about 2 months ago
JSON representation

React Quiz-App

Awesome Lists containing this project

README

        

# React Quiz-App

In this project i create a responsive simple React Quiz App with React and CSS.

Live Version 🟢 React-Quiz-App Live

## Features of the project 🔷

- One file for each component.
- Error handling for questions fetch.
- Timer that checks the status of the Quiz.
- A progressbar synchronized with your question progress.
- The loader which controls the process until the questions are fetched.
- A welcome screen before starting the exam and an end screen at the end of the exam.
- Highscore feature after you restart the quiz.
- Mixing up the questions when restarting the exam.
- Different score evaluation for easy and difficult questions.

## Which "features" of React did I use?

- Conditional rendering.
- Instead of useState, useReducer which controls different states at once.
- For reducer function switch/case structure.
- Derived state from initial states.
- useEffect hook for fetch quesitons.
- Prop Drilling, children prop and component composition.
- Short Circuiting, destructuring, map, reduce and sort method which is JS feature.
- Key prop on rendering list.
- Cleanup function for clean setInterval sideeffects.