text: import React, { Component } from 'react';
  import PrivateRouteQuestionPage from './Components/PriviteRoutse/questionPage';
  import './App.css';
  import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
  
  //Components
  import MainPage from './MainPage'
  import Questions from './Questions.js'
  import WaitingRoom from './waitingRoom'
  import MidResults from './Results'
  
  class App extends Component {
    render() {
      return (
          <Router>
            <Switch>
              <Route exact path="/" component={MainPage} />
              <PrivateRouteQuestionPage path="/waitingRoom" component={WaitingRoom} />
              <PrivateRouteQuestionPage path="/questions" component={Questions} />
              <PrivateRouteQuestionPage path="/results" component={MidResults} />
            </Switch>
          </Router>
      );
    }
  }
  
  export default App;
  