If you want to apply some global styles in a Next.js app, you should modify the ________ component.

  • _app.js
  • _document.js
  • _layout.js
  • _style.js
In Next.js, if you want to apply some global styles or layout to your entire application, you should modify the _app.js component. This component is a wrapper around your entire application and allows you to include global styles and layout elements that persist across all pages. The other options are not typically used for applying global styles.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *