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', {