Skip to content

Commit 364f10b

Browse files
committed
change title to Specific Use Cases For Pages Router
1 parent 4ddd469 commit 364f10b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/NextJs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ cd next-admin
4040
yarn add react-admin ra-data-json-server
4141
```
4242

43-
### Creating the Admin App Component
43+
### Creating The Admin App Component
4444

4545
Next, create a `components` directory inside `src`, and an admin App component in `src/components/AdminApp.jsx`:
4646

@@ -77,7 +77,7 @@ export default AdminApp;
7777

7878
This is a minimal configuration to render CRUD pages for users, posts and comments. React-admin guesses the data structure from the API response.
7979

80-
### Exposing the Admin App Component
80+
### Exposing The Admin App Component
8181
React-admin is designed as a Single-Page Application, rendered on the client-side. It comes with its own routing sytem, which conflicts with the Next.js routing system. So we must prevent Next.js from rendering the react-admin component on the server-side.
8282

8383
To do that, we will have to import our `<AdminApp>` component in Next.js by using the [__lazy loading__ system provided by Next.js](https://nextjs.org/docs/pages/building-your-application/optimizing/lazy-loading) and specify the [`ssr` option to false](https://nextjs.org/docs/pages/building-your-application/optimizing/lazy-loading#with-no-ssr).
@@ -107,7 +107,7 @@ Now, start the server with `yarn dev`, browse to `http://localhost:3000/`, and y
107107

108108
Starting from there, you can [Add an API](#adding-an-api) as described in the next section, and/or add features to the Next.js app, as explained in the [Getting started tutorial](./Tutorial.md)
109109

110-
## Pages Router Specific Use Case
110+
## Specific Use Cases For Pages Router
111111

112112
### Rendering React-Admin In A Sub Route
113113

0 commit comments

Comments
 (0)