Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc(next): Update documentation for handling App router part #9513

Merged
merged 3 commits into from
Dec 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/NextJs.md
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ npx create-next-app@latest
```

A prompt will asks you some questions, feel free to choose answers according to your needs.
This tutorial assumes you're using an `src` folder, so answer 'Yes' to the 5th question. As for the App Router, you can choose to use it or not, this tutorial will explain how to use both. (For new applications, Next.js recommend using the App Router.)
This tutorial assumes you're using an `src` folder, so answer 'Yes' to the 5th question. As for the App Router, you can choose to use it or not, this tutorial will explain how to use both. (For new applications, Next.js recommends using the App Router.)

![Install Next.js with command line](./img/install-next-js-command-line.png)

@@ -50,7 +50,7 @@ Next, create a `components` directory inside `src`, and an admin App component i

```jsx
// in src/components/AdminApp.tsx
"use client"; // remove it if you choose Pages Router
"use client"; // remove this line if you choose Pages Router
import { Admin, Resource, ListGuesser, EditGuesser } from "react-admin";
import jsonServerProvider from "ra-data-json-server";