Archived
fix
This commit is contained in:
1 parent
579c8a615e
commit
0b73bd1bef
1 file changed
+18
-12
+18
-12
@@ -1,4 +1,8 @@
|
|||||||
import { BrowserRouter as Router, Switch, Route /*Link*/ } from "react-router-dom";
|
import {
|
||||||
|
BrowserRouter as Router,
|
||||||
|
Switch,
|
||||||
|
Route /*Link*/,
|
||||||
|
} from "react-router-dom";
|
||||||
import { Home } from "./pages/Home";
|
import { Home } from "./pages/Home";
|
||||||
import { About } from "./pages/About";
|
import { About } from "./pages/About";
|
||||||
import { Users } from "./pages/Users";
|
import { Users } from "./pages/Users";
|
||||||
@@ -6,15 +10,17 @@ import { NotFound } from "./pages/NotFound";
|
|||||||
import Logo from "./components/Logo";
|
import Logo from "./components/Logo";
|
||||||
|
|
||||||
export const App = () => {
|
export const App = () => {
|
||||||
return (
|
return (
|
||||||
<Router>
|
<Router>
|
||||||
<Logo />
|
<Logo />
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route exact path="/about" component={About} />
|
<Route exact path="/about" component={About} />
|
||||||
<Route exact path="/users" component={Users} />
|
<Route exact path="/users" component={Users} />
|
||||||
<Route exact path="/" component={Home} />
|
<Route exact path="/" component={Home} />
|
||||||
<Route component={NotFound} />
|
<Route component={NotFound} />
|
||||||
</Switch>
|
</Switch>
|
||||||
</Router>
|
</Router>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default App;
|
||||||
Reference in new issue
Block a user