From 7a07b7b3a516a128d9d4cad0b84655194aed7846 Mon Sep 17 00:00:00 2001 From: "Andrea N. Cardona" Date: Mon, 30 Oct 2023 17:58:52 -0500 Subject: [PATCH] Update step-3.mdx --- src/pages/developing/react-tutorial/step-3.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/developing/react-tutorial/step-3.mdx b/src/pages/developing/react-tutorial/step-3.mdx index b8426aacf6d..e561998e2ca 100644 --- a/src/pages/developing/react-tutorial/step-3.mdx +++ b/src/pages/developing/react-tutorial/step-3.mdx @@ -155,7 +155,7 @@ Let's declare a `useEffect` hook immediately below the component definition. We'll use this to query Github's API when the component first renders: ```javascript path=src/app/repos/page.js -const RepoPage = () => { +function RepoPage() { useEffect(() => { async function getCarbonRepos() { const res = await octokitClient.request('GET /orgs/{org}/repos', {