docs: use function for components in general (#33990)
This commit is contained in:
parent
632c9860e0
commit
4812e22992
2 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@ If you are using the [gtag.js](https://developers.google.com/analytics/devguides
|
|||
```jsx
|
||||
import Script from 'next/script'
|
||||
|
||||
const Home = () => {
|
||||
function Home() {
|
||||
return (
|
||||
<div class="container">
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
|
@ -44,7 +44,7 @@ If you are using the [analytics.js](https://developers.google.com/analytics/devg
|
|||
```jsx
|
||||
import Script from 'next/script'
|
||||
|
||||
const Home = () => {
|
||||
function Home() {
|
||||
return (
|
||||
<div class="container">
|
||||
<Script id="google-analytics" strategy="afterInteractive">
|
||||
|
@ -70,7 +70,7 @@ If you are using the [alternative async variant](https://developers.google.com/a
|
|||
```jsx
|
||||
import Script from 'next/script'
|
||||
|
||||
const Home = () => {
|
||||
function Home() {
|
||||
return (
|
||||
<div class="container">
|
||||
<Script id="google-analytics" strategy="afterInteractive">
|
||||
|
|
|
@ -13,7 +13,7 @@ Use the Script component with the right loading strategy to defer loading of the
|
|||
```jsx
|
||||
import Script from 'next/script'
|
||||
|
||||
const Home = () => {
|
||||
function Home() {
|
||||
return (
|
||||
<div class="container">
|
||||
<Script src="https://third-party-script.js"></Script>
|
||||
|
|
Loading…
Reference in a new issue