Recap: Why Next.js
Part of the Next.js Essentials section of Coddy's React journey — lesson 4 of 47.
Challenge
EasyChapter recap: build a page from nothing, using everything from this chapter.
app/page.jsxcurrently defines a component but Next.js can't find it. Mark it as the file's default export.- Inside the
<main>, add an<h1>withid="title"and the textCoddy Eats. - Below it, a
<p>withid="tagline"and the textBuilt with Next.js.
Try it yourself
import './globals.css';
export const metadata = {
title: 'My App',
};
export default function RootLayout({ children }) {
return (
<html lang="en">
<body>
{children}
</body>
</html>
);
}