Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: use function for components in general #33990

Merged
merged 1 commit into from Feb 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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