// stream() demo. Counts. import { stream } from "@/stream" export default async function () { let count = 1 return stream(

{count}

, async ({ replace }) => { for (let i = 1; i < 10; i++) { await Bun.sleep(250) count++ replace(

{count}

) } }) }