Skip to content

Commit

Permalink
Fix React Router example
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed Aug 22, 2024
1 parent d035896 commit 4f5cf35
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/new-react-router/newtab/NewTabApp.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {BrowserRouter as Router, Switch, Route, Link} from 'react-router-dom'
import {HashRouter as Router, Switch, Route, Link} from 'react-router-dom'
import 'sakura.css'
import './styles.css'
import reactLogo from '../images/react.png'
Expand Down Expand Up @@ -66,8 +66,6 @@ export default function NewTabApp() {
<Link to="/users">Users</Link>
</nav>

{/* A <Switch> looks through its children <Route>s and
renders the first one that matches the current URL. */}
<Switch>
<Route path="/about">
<About />
Expand Down

0 comments on commit 4f5cf35

Please sign in to comment.