From 4812e229928dc01ae21ee0533685f6813694c136 Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Fri, 4 Feb 2022 16:18:35 +0100 Subject: [PATCH] docs: use function for components in general (#33990) --- errors/next-script-for-ga.md | 6 +++--- errors/no-sync-scripts.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/errors/next-script-for-ga.md b/errors/next-script-for-ga.md index 1d968090e1f15..0785fcca17708 100644 --- a/errors/next-script-for-ga.md +++ b/errors/next-script-for-ga.md @@ -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 (
@@ -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 (