Skip to content

Commit

Permalink
route fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jdshaeffer committed Oct 15, 2023
1 parent 854b4b7 commit a46de7f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const App = () => {
<header className='App-header'>
<Router>
<Switch>
<Route exact path='/'>
<Route exact path='/dungeon-solitaire'>
<Intro />
</Route>
<Route path='/easy'>
Expand Down
14 changes: 3 additions & 11 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,11 @@ import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { BrowserRouter } from 'react-router-dom';

ReactDOM.render(
<React.StrictMode>
<BrowserRouter>
<App />
</BrowserRouter>
</React.StrictMode>,
<BrowserRouter>
<App />
</BrowserRouter>,
document.getElementById('root'),
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
13 changes: 0 additions & 13 deletions src/reportWebVitals.js

This file was deleted.

0 comments on commit a46de7f

Please sign in to comment.