Skip to content

Commit a929a00

Browse files
committed
Update navigation-blocking example to use 6.7.0-pre.3
1 parent fdfa53c commit a929a00

File tree

3 files changed

+28
-27
lines changed

3 files changed

+28
-27
lines changed

examples/navigation-blocking/package-lock.json

+25-25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/navigation-blocking/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dependencies": {
1010
"react": "18.1.0",
1111
"react-dom": "18.1.0",
12-
"react-router-dom": "^6.6.2"
12+
"react-router-dom": "^6.7.0-pre.3"
1313
},
1414
"devDependencies": {
1515
"@rollup/plugin-replace": "4.0.0",

examples/navigation-blocking/src/app.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ let router = createBrowserRouter(
3030
}
3131
/>
3232
<Route path="four" element={<h2>Four</h2>} />
33+
<Route path="five" element={<h2>Five</h2>} />
3334
</Route>
3435
)
3536
);
@@ -66,7 +67,7 @@ function Layout() {
6667
<Link to="/one">One</Link>&nbsp;&nbsp;
6768
<Link to="/two">Two</Link>&nbsp;&nbsp;
6869
<Link to="/three">Three (Form with blocker)</Link>&nbsp;&nbsp;
69-
<Link to="/four">Four (Form with prompt)</Link>&nbsp;&nbsp;
70+
<Link to="/four">Four</Link>&nbsp;&nbsp;
7071
<Link to="/five">Five</Link>&nbsp;&nbsp;
7172
</nav>
7273
<p>

0 commit comments

Comments
 (0)