-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a6f5bfe
commit 6b3f453
Showing
10 changed files
with
48 additions
and
93 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
tests/e2e/builder/cases/dev/history-api-fallback/src/App.tsx
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
tests/e2e/builder/cases/dev/history-api-fallback/src/index.tsx
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
tests/e2e/builder/cases/dev/history-api-fallback/tsconfig.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ export default applyBaseConfig({ | |
}, | ||
}, | ||
runtime: { | ||
router: true, | ||
router: false, | ||
state: false, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,27 @@ | ||
export default () => { | ||
return <div>Hello World</div>; | ||
}; | ||
import { BrowserRouter, Link, Route, Routes, Outlet } from 'react-router-dom'; | ||
|
||
const App = () => ( | ||
<BrowserRouter> | ||
<Routes> | ||
<Route | ||
path="/" | ||
element={ | ||
<div> | ||
home | ||
<div> | ||
<Link to="/a">A</Link> | ||
</div> | ||
<div> | ||
<Link to="/b">B</Link> | ||
</div> | ||
<Outlet /> | ||
</div> | ||
} | ||
/> | ||
<Route path="/a" element={<div>A</div>} /> | ||
<Route path="/b" element={<div>B</div>} /> | ||
</Routes> | ||
</BrowserRouter> | ||
); | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters