docs: Add clearer instructions on the storage location of mdx-components files. (#52187)

Co-authored-by: Lee Robinson <me@leerob.io>
This commit is contained in:
feikerwu 2023-07-06 09:55:12 +08:00 committed by GitHub
parent 927fc9e220
commit bd02b4db7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ Install the `@next/mdx` package:
npm install @next/mdx @mdx-js/loader @mdx-js/react @types/mdx
```
Create `mdx-components.tsx` in the root of your application (the parent folder of `app`):
Create `mdx-components.tsx` in the root of your application (the parent folder of `app/` or `src/`):
```tsx filename="mdx-components.tsx" switcher
import type { MDXComponents } from 'mdx/types'