> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Migrating from dashboard-react

## Article: Migrating from dashboard-react

## Article Link: https://dev.wix.com/docs/sdk/host-modules/dashboard-react-deprecated/migrating-from-dashboard-react.md

## Article Content:

# Migrating from dashboard-react
As of September 2024, the [Wix dashboard-react SDK](https://dev.wix.com/docs/sdk/host-modules/dashboard-react/introduction.md) is deprecated and closed to new users. You can access the functionality of the dashboard-react SDK using the [Dashboard SDK](https://dev.wix.com/docs/sdk/host-modules/dashboard/introduction.md). 

Below is a list of the deprecated `dashboard-react` components and functions and their alternatives in the Dashboard SDK.

<blockquote class="important">
  <strong>Important:</strong>
  
  If you are building a <a href="fallback::https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/about-self-hosting-for-wix-apps">self.md hosted app</a>, you must create a <a href="fallback::https://dev.wix.com/docs/sdk/core-modules/sdk/wix-client">Wix.md Client</a> to use the <a href="fallback::https://dev.wix.com/docs/sdk/host-modules/dashboard/introduction">Dashboard.md SDK</a>.
</blockquote>

### [`PageLink`](https://dev.wix.com/docs/sdk/host-modules/dashboard-react/page-link.md)
Instead of navigating in the dashboard using PageLink, use [`navigate()`](https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate.md) from the Dashboard SDK.

### [`withDashboard()`](https://dev.wix.com/docs/sdk/host-modules/dashboard-react/with-dashboard.md)
There is no use case for `withDashboard()` because it is used to initialize the [React SDK](https://dev.wix.com/docs/sdk/core-modules/sdk-react/introduction.md) and the [Dashboard React SDK](https://dev.wix.com/docs/sdk/host-modules/dashboard-react/introduction.md), both of which are deprecated.

> **Note:** This hook is temporarily required for use in [Wix Patterns](https://www.wix-pages.com/wix-patterns/?path=/story/getting-started--overview). It will continue to be supported while it is required.

### [`useDashboard()`](https://dev.wix.com/docs/sdk/host-modules/dashboard-react/use-dashboard.md)
Instead of accessing [dashboard](https://dev.wix.com/docs/sdk/host-modules/dashboard/introduction.md) functions through `useDashboard()`, call them directly. 

<details>
<summary>Wix-managed example</summary>

```js
import { dashboard } from "@wix/dashboard";

dashboard.showToast({ message: "Hello World" });
```
</details>

<details>
<summary>Self-managed example</summary>

```js
import { createClient } from "@wix/sdk";
import { dashboard } from "@wix/dashboard";

const client = createClient({
  host: dashboard.host(),
  auth: dashboard.auth(),
  modules: {
    dashboard,
  },
});

client.dashboard.showToast({ message: "Hello World" });
```
</details>

### [`usePageLocation()`](https://dev.wix.com/docs/sdk/host-modules/dashboard-react/use-page-location.md)
Instead of calling `usePageLocation()`, access `PageLocation` properties using the [`location`](https://dev.wix.com/docs/sdk/host-modules/dashboard/observe-state.md#pageparams) property of `componentParams ` passsed to dashboard pages in `observeState()`.