Skip to content

Commit

Permalink
Update step-3.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
andreancardona authored Oct 30, 2023
1 parent ce30755 commit 7a07b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/developing/react-tutorial/step-3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down

0 comments on commit 7a07b7b

Please sign in to comment.