Question · Next.js course · Module 3: Styling and Visual Optimization
Exporting a page component
How do you correctly export a page component in a page.js file in Next.js?
Answer options
- module.exports = Page
- export default function Page()
- export const Page = () => {}
- export function default Page()
You can check the correct answer by solving this task in the CodeWorlds game.