import React from "react";
import "./App.css";
import Questions from "./questions";
import Results from "./results";
import { BrowserRouter as Router,Switch, Route, Redirect } from "react-router-dom";

function App() {
  return (
    <Router>
      <div className="App">
      <Switch>
          <Route exact path='/'>
          <Redirect to="/questions"/>
        </Route>
        <Route exact path="/questions" component={Questions} />
        <Route exact path="/results" component={Results} />
        </Switch>
      </div>
    </Router>
  );
}

export default App;
