We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 677f2dc commit 26d616dCopy full SHA for 26d616d
app/api-example/page.tsx
@@ -5,7 +5,7 @@ import { useEffect, useState } from "react"
5
export default function Page() {
6
const [data, setData] = useState()
7
useEffect(() => {
8
- ; (async () => {
+ ;(async () => {
9
const res = await fetch("/api/protected")
10
const json = await res.json()
11
setData(json)
0 commit comments