change main component to class
This commit is contained in:
parent
50fb4cae73
commit
2eb7bcd95f
10
src/App.js
10
src/App.js
@ -4,11 +4,11 @@ import {BrowserRouter, Routes, Route} from "react-router-dom";
|
|||||||
import AddLink from "./components/AddLink";
|
import AddLink from "./components/AddLink";
|
||||||
import Redirecter from './components/Redirecter'
|
import Redirecter from './components/Redirecter'
|
||||||
import NotFound from './components/NotFound'
|
import NotFound from './components/NotFound'
|
||||||
import {React} from "react";
|
import {Component, React} from "react";
|
||||||
|
|
||||||
function App() {
|
class App extends Component {
|
||||||
return (
|
render () {
|
||||||
<div className="App">
|
return <div className="App">
|
||||||
<h3 className="title"><a href="/" className="href">Timka ShortLink</a></h3>
|
<h3 className="title"><a href="/" className="href">Timka ShortLink</a></h3>
|
||||||
<BrowserRouter>
|
<BrowserRouter>
|
||||||
<Routes>
|
<Routes>
|
||||||
@ -19,7 +19,7 @@ function App() {
|
|||||||
</Routes>
|
</Routes>
|
||||||
</BrowserRouter>
|
</BrowserRouter>
|
||||||
</div>
|
</div>
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default App;
|
export default App;
|
||||||
|
Loading…
Reference in New Issue
Block a user