Skip to content

Commit

Permalink
docs: fix web-vitals.tsx file path for second example (vercel#62387)
Browse files Browse the repository at this point in the history
Changing from "components" to "_components" folder name here
"app/components/web-vitals.tsx", to be the same as previous example on
the page "app/_components/web-vitals.tsx".

Co-authored-by: Steven <[email protected]>
  • Loading branch information
Svetoslav99 and styfle authored Feb 22, 2024
1 parent 93eb32d commit e722778
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function MyApp({ Component, pageProps }) {

<AppOnly>

```tsx filename="app/components/web-vitals.tsx" switcher
```tsx filename="app/_components/web-vitals.tsx" switcher
'use client'

import { useReportWebVitals } from 'next/web-vitals'
Expand All @@ -122,7 +122,7 @@ export function WebVitals() {
}
```

```jsx filename="app/components/web-vitals.js" switcher
```jsx filename="app/_components/web-vitals.js" switcher
'use client'

import { useReportWebVitals } from 'next/web-vitals'
Expand Down

0 comments on commit e722778

Please sign in to comment.