From 4b164b6ed973dc16e53cee15bacfbc061d20b1bb Mon Sep 17 00:00:00 2001 From: Camerin Date: Wed, 15 Sep 2021 15:48:02 -0400 Subject: [PATCH] Router changed to BrowserRouter Router was causing bug that prevented render when Link was clicked --- src/components/App.js | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/src/components/App.js b/src/components/App.js index 13b1299..50161f3 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -1,18 +1,24 @@ import React from 'react'; -import { Router, Route } from 'react-router-dom'; +import { BrowserRouter, Route, Switch } from 'react-router-dom'; import Navigation from './Navigation'; import history from '../history'; import Home from './Home'; +import Github from './Github'; -function App() { - return ( -
- - - - -
- ); +const App = (props) => { + return ( +
+ +
+ + + + + +
+
+
+ ); } export default App;