u/Brief_Tune3264

▲ 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> ); }

reddit.com
u/Brief_Tune3264 — 4 days ago
▲ 0 r/Devvit

my app copyrighter

#!/bin/bash

echo "Installing dependencies..."

npm install --workspaces

echo "Starting system..."

npm run dev

reddit.com
u/Brief_Tune3264 — 4 days ago