Skip to content

Commit

Permalink
lint-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Aug 8, 2022
1 parent cb0d295 commit 0326a0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/basic-features/script.md
Expand Up @@ -281,11 +281,11 @@ export default function Home() {
Some third-party scripts require users to run JavaScript code after the script has finished loading and every time the component is mounted (after a route navigation for example). You can execute code after the script's `load` event when it first loads and then after every subsequent component re-mount using the `onReady` property:

```jsx
import { useRef } from "react";
import Script from 'next/script';
import { useRef } from 'react'
import Script from 'next/script'

export default function Home() {
const mapRef = useRef();
const mapRef = useRef()
return (
<>
<div ref={mapRef}></div>
Expand Down

0 comments on commit 0326a0e

Please sign in to comment.