import React from 'react';
import ReactDOM from 'react-dom';
import 'react-dom'
import './index.css';

import Home from './Home'
import Quiz from './Quiz'
import End from './End'

import { BrowserRouter as Router, Route } from 'react-router-dom';
// import Quiz from './Quiz';
import * as serviceWorker from './serviceWorker';
import 'bootstrap/dist/css/bootstrap.css'

ReactDOM.render(
    <Router>
        <Route exact path="/" component={Home} />
        <Route path='/quiz' component={Quiz} />
        <Route path='/end' component={End} />
    </Router>,
    document.getElementById('root')
);

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
