Unverified Commit 1d026ec0 authored by Eliaz Bobadilla's avatar Eliaz Bobadilla Committed by GitHub

class component -> functional component (#41089)

easier to read

## Documentation / Examples

- [x ] Make sure the linting passes by running `pnpm lint`
- [ x] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
Co-authored-by: 's avatarBalázs Orbán <18369201+balazsorban44@users.noreply.github.com>
parent b7fa280f
...@@ -13,8 +13,7 @@ Within a page or component, import and use `next/head` to define a page title: ...@@ -13,8 +13,7 @@ Within a page or component, import and use `next/head` to define a page title:
```jsx ```jsx
import Head from 'next/head' import Head from 'next/head'
export class Home { export function Home() {
render() {
return ( return (
<div> <div>
<Head> <Head>
...@@ -22,7 +21,6 @@ export class Home { ...@@ -22,7 +21,6 @@ export class Home {
</Head> </Head>
</div> </div>
) )
}
} }
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment