From 01f89911771a5f6b622dbaf6826b1ba1d897d46a Mon Sep 17 00:00:00 2001 From: kvoncode Date: Thu, 2 Apr 2020 09:41:17 +0900 Subject: [PATCH] add: `jsx` to list of supported files in docs --- docs/basic-features/pages.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/basic-features/pages.md b/docs/basic-features/pages.md index b4d908cac197c..efcefc736c567 100644 --- a/docs/basic-features/pages.md +++ b/docs/basic-features/pages.md @@ -6,7 +6,7 @@ description: Next.js pages are React Components exported in a file in the pages > This document is for Next.js versions 9.3 and up. If you're using older versions of Next.js, refer to our [previous documentation](https://nextjs.org/docs/tag/v9.2.2/basic-features/pages). -In Next.js, a **page** is a [React Component](https://reactjs.org/docs/components-and-props.html) exported from a `.js`, `.ts`, or `.tsx` file in the `pages` directory. Each page is associated with a route based on its file name. +In Next.js, a **page** is a [React Component](https://reactjs.org/docs/components-and-props.html) exported from a `.js`, `jsx`, `.ts`, or `.tsx` file in the `pages` directory. Each page is associated with a route based on its file name. **Example**: If you create `pages/about.js` that exports a React component like below, it will be accessible at `/about`.