change main component to class

master
timka 2023-11-23 18:42:02 +03:00
parent 50fb4cae73
commit 2eb7bcd95f
1 changed files with 15 additions and 15 deletions

View File

@ -4,11 +4,11 @@ import {BrowserRouter, Routes, Route} from "react-router-dom";
import AddLink from "./components/AddLink";
import Redirecter from './components/Redirecter'
import NotFound from './components/NotFound'
import {React} from "react";
import {Component, React} from "react";
function App() {
return (
<div className="App">
class App extends Component {
render () {
return <div className="App">
<h3 className="title"><a href="/" className="href">Timka ShortLink</a></h3>
<BrowserRouter>
<Routes>
@ -19,7 +19,7 @@ function App() {
</Routes>
</BrowserRouter>
</div>
);
}
}
export default App;