Skip to content

Commit

Permalink
docs: use function for components in general (vercel#33990)
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi authored and natew committed Feb 16, 2022
1 parent de2bbf9 commit 8a22d07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions errors/next-script-for-ga.md
Expand Up @@ -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 -->
Expand Down Expand Up @@ -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">
Expand All @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion errors/no-sync-scripts.md
Expand Up @@ -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>
Expand Down

0 comments on commit 8a22d07

Please sign in to comment.