docs: use function for components in general (#33990)

This commit is contained in:
Jiachi Liu 2022-02-04 16:18:35 +01:00 committed by GitHub
parent 632c9860e0
commit 4812e22992
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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">

View file

@ -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>