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 { About } from "./pages/About";
|
||||
import { Users } from "./pages/Users";
|
||||
@@ -6,15 +10,17 @@ import { NotFound } from "./pages/NotFound";
|
||||
import Logo from "./components/Logo";
|
||||
|
||||
export const App = () => {
|
||||
return (
|
||||
<Router>
|
||||
<Logo />
|
||||
<Switch>
|
||||
<Route exact path="/about" component={About} />
|
||||
<Route exact path="/users" component={Users} />
|
||||
<Route exact path="/" component={Home} />
|
||||
<Route component={NotFound} />
|
||||
</Switch>
|
||||
</Router>
|
||||
);
|
||||
return (
|
||||
<Router>
|
||||
<Logo />
|
||||
<Switch>
|
||||
<Route exact path="/about" component={About} />
|
||||
<Route exact path="/users" component={Users} />
|
||||
<Route exact path="/" component={Home} />
|
||||
<Route component={NotFound} />
|
||||
</Switch>
|
||||
</Router>
|
||||
);
|
||||
};
|
||||
|
||||
export default App;
|
||||
Reference in new issue
Block a user