Skip to content

Commit 7e6e25d

Browse files
bartdeslagmuldertimneutkens
authored andcommitted
Add .jsx as a valid file extension in the pages directory (vercel#10281)
It's possible to use a .jsx file extension in the `pages` directory but the doc doesn't mention it. Next to the current extensions: .js, .ts & .tsx I would mention .jsx also in the list.
1 parent b0053a4 commit 7e6e25d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ These scripts refer to the different stages of developing an application:
3939
- `build` - Runs `next build` which builds the application for production usage
4040
- `start` - Runs `next start` which starts a Next.js production server
4141

42-
Next.js is built around the concept of pages. 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.
42+
Next.js is built around the concept of pages. 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.
4343

4444
Pages are associated with a route based on their file name. For example `pages/about.js` is mapped to `/about`. You can even add dynamic route parameters with the filename.
4545

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy