Would you rather is a small web app that lets a user play the “Would You Rather?” game. The game goes like this: A user is asked a question in the form: “Would you rather [option A] or [option B] ?”
install all project dependencies with
npm install
start the development server with
npm start
├── App.js
├── assets
│ └── css
│ └── style.css
├── components
│ ├── NoQuestions.js
│ └── QuestionContent.js
├── data
│ └── _users.js
├── index.js
├── pages
│ ├── Home.js
│ ├── Layout.js
│ ├── Leaderboard.js
│ ├── Login.js
│ ├── NewPoll.js
│ ├── NotFound.js
│ ├── Question.js
│ ├── Questions.js
│ └── RequiredAuth.js
├── reportWebVitals.js
├── setupTests.js
├── src.txt
└── store
├── actions.js
├── index.js
├── reducer.js
└── types.js
-
- installation :
npm install semantic-ui-react semantic-ui-css
- add the following line to index.js
import 'semantic-ui-css/semantic.min.css'
- installation :
-
React Router
npm install react-router-dom@6
-
React Redux
npm install react-redux redux