Skip to content

Commit 82b9488

Browse files
addded a fix for the basename in url router
1 parent e1c0865 commit 82b9488

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { BrowserRouter as Router, Routes, Route, Link } from 'react-router-dom'
77

88
function App() {
99
return (
10-
<Router>
10+
<Router basename='/react_playground'>
1111
<nav className="p-4 bg-gray-200">
1212
<Link className="mr-4 hover:underline" to="/">Home</Link>
1313
<Link className="p-2 hover:underline" to="/tictactoe">Tic Tac Toe</Link>

0 commit comments

Comments
 (0)