Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions docs/upgrading/v6.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ You don't need to update anything unless you are using `React.lazy` _inside_ of

Using `React.lazy` inside of a component is incompatible with `React.useTransition` (or other code that makes promises inside of components). Move `React.lazy` to the module scope and stop making promises inside of components. This is not a limitation of React Router but rather incorrect usage of React.

<docs-info>We added a flag to opt-out of `React.startTransition` in v7 so you can use that to upgrade to v7 without adopting React transition-enabled navigations if needed. See the [transition docs][transitions] for more information.</docs-info>

### v7_fetcherPersist

<docs-warning>If you are not using a `<RouterProvider>` you can skip this</docs-warning>
Expand Down Expand Up @@ -377,3 +379,4 @@ Congratulations, you're now on v7!
[react-flushsync]: https://react.dev/reference/react-dom/flushSync
[response-json]: https://developer.mozilla.org/en-US/docs/Web/API/Response/json
[data-util]: https://api.reactrouter.com/v7/functions/react-router.data.html
[transitions]: ../explanation/react-transitions
15 changes: 1 addition & 14 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
---
title: Examples
order: 6
---

# React Router Examples

Welcome to the examples for React Router.

Here you'll find various examples of using React Router to accomplish certain tasks. Each example is a complete application including a build and even a button to preview a live instance of the app so you can play with it. You'll most often be interested in checking out the code in `src/App.tsx` (or `src/App.js`), but we included the entire source code for the app for completeness.

Also, remember to check out the README!

Enjoy!
React Router examples have moved into a dedicated repository. [See `remix-run/react-router-examples`](https://github.com/remix-run/react-router-examples) to browse or contribute new example projects!
5 changes: 0 additions & 5 deletions examples/auth-router-provider/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions examples/auth-router-provider/.stackblitzrc

This file was deleted.

28 changes: 0 additions & 28 deletions examples/auth-router-provider/README.md

This file was deleted.

12 changes: 0 additions & 12 deletions examples/auth-router-provider/index.html

This file was deleted.

Loading