Unverified Commit 1cd34dd6 authored by Dilwoar Hussain's avatar Dilwoar Hussain Committed by GitHub

Use appropriate `className` attribute for JSX (#37168)

## What

This changes the` class` attribute with `className`

## Why

Class is a reserved word in JavaScript. The appropriate attribute to use is `className`.



## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
parent cc254cc1
...@@ -15,7 +15,7 @@ import Script from 'next/script' ...@@ -15,7 +15,7 @@ import Script from 'next/script'
function Home() { function Home() {
return ( return (
<div class="container"> <div className="container">
<!-- Global site tag (gtag.js) - Google Analytics --> <!-- Global site tag (gtag.js) - Google Analytics -->
<Script <Script
src="https://www.googletagmanager.com/gtag/js?id=GA_MEASUREMENT_ID" src="https://www.googletagmanager.com/gtag/js?id=GA_MEASUREMENT_ID"
...@@ -46,7 +46,7 @@ import Script from 'next/script' ...@@ -46,7 +46,7 @@ import Script from 'next/script'
function Home() { function Home() {
return ( return (
<div class="container"> <div className="container">
<Script id="google-analytics" strategy="afterInteractive"> <Script id="google-analytics" strategy="afterInteractive">
{` {`
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
...@@ -72,7 +72,7 @@ import Script from 'next/script' ...@@ -72,7 +72,7 @@ import Script from 'next/script'
function Home() { function Home() {
return ( return (
<div class="container"> <div className="container">
<Script id="google-analytics" strategy="afterInteractive"> <Script id="google-analytics" strategy="afterInteractive">
{` {`
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment