next.js
3aa8bc5f - docs: add note to language and filename section (#74239)

Commit
1 year ago
docs: add note to language and filename section (#74239) ## Description Some people are baffled by [JavaScript files with JSX code](https://nextjs.org/docs/community/contribution-guide#language-and-filename) in [contribution guide](https://nextjs.org/docs/community/contribution-guide) due to mismatch the extension. ![image](https://github.com/user-attachments/assets/d9f16064-a765-4252-98e4-2c608dd27a7c) Therefore, add the note like the below attention. > [!NOTE] > - Make sure to use **`js`** extension with **JSX** code at JavaScript files. > - For example, ```jsx filename="app/layout.js" ### Improving Documentation - [x] Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - [x] Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide Closes #74175 Co-authored-by: Sam Ko <sam@vercel.com>
Parents
Loading