Week 2
This week we learned how to create static components that can be
Another Example
Showcase how to use the spread operator
Important Conventions in NextJS
- Components are named with PascalCase like
app/components/PageHeader.js - Pages are named with kebab-case. like
app/week-2/page.js - JSX is rendered inside the
return () - export pages using
export default function Page() - export components using
export function ComponentName(). You can use default if it's the only thing being exported.