Skip to content

Commit

Permalink
changes in browserrouter to deploy app
Browse files Browse the repository at this point in the history
  • Loading branch information
glecio committed Nov 16, 2022
1 parent 766d940 commit c1e9e0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Print from "./pages/Print";

export default function App(){
return(
<BrowserRouter>
<BrowserRouter basename={window.location.pathname || ''}>
<Routes>
<Route index element={<Home />} />
<Route path="print" element={<Print />} />
Expand Down
1 change: 1 addition & 0 deletions target/npmlist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":"0.1.0","name":"reactproject01","dependencies":{"@testing-library/jest-dom":{"version":"5.16.5"},"@testing-library/react":{"version":"13.4.0"},"@testing-library/user-event":{"version":"13.5.0"},"react-dom":{"version":"18.2.0"},"react-router-dom":{"version":"6.4.2"},"react-scripts":{"version":"5.0.1"},"react":{"version":"18.2.0"},"web-vitals":{"version":"2.1.4"}}}

0 comments on commit c1e9e0b

Please sign in to comment.