This repository contains the frontend for a real-time quiz application built with React. The frontend allows users to create quizzes, join quiz sessions, and participate in real-time quiz interactions.
- Clone this project
git clone https://github.com/chaddaess/mentimeter-front
- Navigate into the project directory:
cd mentimeter
- Install dependencies
npm install
- Running the app
npm run dev
- Routing system
To define routes for the different pages and navigate between them effectively , we'll use react-router-dom
.
To do that we'll wrap our app inside a
<BrowserRouter> </BrowserRouter>
component. Then inside the
<Routes> </Routes>
component , we will specify our pages as well as their routes (path) and content (element) like so
<Route path="path/to/page" element={<ComponentName/>}></Route>
A react router tutorial I have found helpful : https://www.youtube.com/watch?v=59IXY5IDrBA&t=14s&ab_channel=freeCodeCamp.org