Skip to content

Commit

Permalink
docs(routing): replace legacy package name for react-router
Browse files Browse the repository at this point in the history
  • Loading branch information
aliemir committed Jan 27, 2025
1 parent c57640c commit 09746b6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion documentation/docs/core/refine-component/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const App = () => (

Refine provides a simple interface from the `routerProvider` prop to infer the resource from route, pass, parse and sync the query parameters and handle navigation operations. This provider and its properties are optional but it is recommended to use it to get the most out of Refine. Bindings to pass to the `routerProvider` prop are provided for the following libraries:

- React Router via `@refinedev/react-router-v6`
- React Router via `@refinedev/react-router`
- Next.js via `@refinedev/nextjs-router`
- Remix via `@refinedev/remix-router`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const AppTsxCode = /* jsx */ `
import { RefineEnterprise } from "@refinedev/enterprise";
import { WithTenant } from "@refinedev/multitenancy";
import dataProvider from "@refinedev/simple-rest";
import routerProvider from "@refinedev/react-router-v6";
import routerProvider from "@refinedev/react-router";
import { BrowserRouter, Outlet, Routes, Route } from "react-router";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ import { ViteRouter } from './vite/router';

First, we need to install necessary packages:

<InstallPackagesCommand args="@refinedev/core @refinedev/react-router-v6 @refinedev/simple-rest" />
<InstallPackagesCommand args="@refinedev/core @refinedev/react-router @refinedev/simple-rest" />

:::simple

Expand Down Expand Up @@ -157,7 +157,7 @@ import { ViteAntdLayout } from './vite/layout/antd';

First, we need to install necessary packages:

<InstallPackagesCommand args="@refinedev/core @refinedev/react-router-v6 @refinedev/antd @refinedev/simple-rest" />
<InstallPackagesCommand args="@refinedev/core @refinedev/react-router @refinedev/antd @refinedev/simple-rest" />

:::simple

Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/packages/list-of-packages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ To learn more about Data Providers, check out [Data Provider](/docs/data/data-pr

To learn more about Router Providers, check out [Routing](/docs/guides-concepts/routing) guide.

- [`@refinedev/react-router-v6`](/docs/routing/integrations/react-router) - Router Provider for [React Router (v6)](https://reactrouter.com)
- [`@refinedev/react-router`](/docs/routing/integrations/react-router) - Router Provider for [React Router](https://reactrouter.com)
- [`@refinedev/nextjs-router`](/docs/routing/integrations/next-js) - Router Provider for [Next.js](https://nextjs.org/docs/api-reference/next/router#userouter)
- [`@refinedev/remix-router`](/docs/routing/integrations/remix) - Router Provider for [Remix](https://remix.run/)
- [`@refinenative/expo-router`](https://www.npmjs.com/package/@refinenative/expo-router) - Router Provider for [Expo](https://docs.expo.dev/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ Refine supports route parameters defined with `:param` syntax. You can use these

## Additional Components

`@refinedev/react-router-v6` package also includes some additional components that can be useful in some cases.
`@refinedev/react-router` package also includes some additional components that can be useful in some cases.

### NavigateToResource

Expand Down

0 comments on commit 09746b6

Please sign in to comment.