~repos /edge-city
git clone https://pyrossh.dev/repos/edge-city.git
edge-city is a next level meta-framework for react that runs only on edge runtimes
example/src/components/Timer/Timer.jsx
import { useState, useEffect } from "react";
export default function Timer() { const [counter, setCounter] = useState(0); useEffect(() => { const ref = setInterval(() => { setCounter((c) => c + 1); }, 100); return () => { clearInterval(ref); }; }, []); return ( <div> <p>(This page is interactive while data is loading: {counter})</p> </div> );}