Unverified Commit bdfc4c2e authored by Igor Agapov's avatar Igor Agapov Committed by GitHub

Fixed method for removing class (#29735)



## 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
parent 4d50ff30
......@@ -135,7 +135,7 @@ export default function Home() {
import Script from 'next/script'
<Script id="show-banner" strategy="lazyOnload">
{`document.getElementById('banner').removeClass('hidden')`}
{`document.getElementById('banner').classList.remove('hidden')`}
</Script>
// or
......@@ -143,7 +143,7 @@ import Script from 'next/script'
<Script
id="show-banner"
dangerouslySetInnerHTML={{
__html: `document.getElementById('banner').removeClass('hidden')`
__html: `document.getElementById('banner').classList.remove('hidden')`
}}
/>
```
......
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