diff --git a/docs/upgrading/v6.md b/docs/upgrading/v6.md index e34a5fe065..6716324093 100644 --- a/docs/upgrading/v6.md +++ b/docs/upgrading/v6.md @@ -338,6 +338,13 @@ find ./path/to/src \( -name "*.tsx" -o -name "*.ts" -o -name "*.js" -o -name "*. +import { RouterProvider } from "react-router/dom"; ``` +Note you should use a top-level import for non-DOM contexts, such as Jest tests: + +```diff +-import { RouterProvider } from "react-router-dom"; ++import { RouterProvider } from "react-router"; +``` + Congratulations, you're now on v7! [react-flushsync]: https://react.dev/reference/react-dom/flushSync