Search⌘ K
AI Features

Making Next.js Easier to Use

Explore how to make Next.js development easier by converting JS files to JSX for better editor support, managing CSS through custom stylesheets linked in the public folder, and cleaning up project structure. Learn practical steps to improve syntax highlighting, auto-completion, and styling methods in your Next.js apps.

Use JSX files instead of JS files

Notice that the index inside the pages folder is a JS file. It works just fine, but there is one problem: there is little to no auto-completion help from your code editor. The syntax highlighting also leaves much to be desired. No worries though! There is an easy fix. Make index.js to a JSX file by changing the extension to .jsx instead of .js. It will look ...