From 0326a0e0cd2ca161f58fdea5234a1bd5d4f76543 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Mon, 8 Aug 2022 12:58:00 -0500 Subject: [PATCH] lint-fix --- docs/basic-features/script.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/basic-features/script.md b/docs/basic-features/script.md index 6769bbaa416b..9e2fc40d7a74 100644 --- a/docs/basic-features/script.md +++ b/docs/basic-features/script.md @@ -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 ( <>