From d4df74a799629860f154da562df0e3bfe7b2d44a Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sun, 16 Feb 2020 09:03:55 -0800 Subject: [PATCH] Clean up lint. --- react-debug/src/App.js | 41 +++++++++++++---------------------------- 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/react-debug/src/App.js b/react-debug/src/App.js index 857b904..2bade86 100644 --- a/react-debug/src/App.js +++ b/react-debug/src/App.js @@ -3,7 +3,6 @@ import { HashRouter as Router, Switch, Route, - Link, useParams } from "react-router-dom"; @@ -100,33 +99,19 @@ const AlbumRoute = () => { return ; } -class App extends React.Component { - constructor(props) { - super(props); - this.state = { - curAlbum: window.location.hash, - }; - } - render() { - let {curAlbum} = this.state; - console.log(this.state); - let content; - - return ( -
- - - - - - - - - - -
- ); - } +const App = () => { + return
+ + + + + + + + + + +
} export default App;