▲ 0 r/Devvit
my app
import { useRouter } from "next/router"; import { useEffect, useState } from "react";
export default function VerifyPage() { const router = useRouter(); const { id } = router.query; const [data, setData] = useState(null);
useEffect(() => { if (!id) return;
fetch("http://localhost:3001/verify/" + id)
.then(res => res.json())
.then(setData);
}, [id]);
return ( <div style={{ padding: 20 }}> <h1>Verification</h1> <pre>{JSON.stringify(data, null, 2)}</pre> </div> ); }
u/Brief_Tune3264 — 4 days ago