pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
at main 14 lines 365 B view raw
1import { useState } from "react"; 2 3import { Button } from "@/components/buttons/Button"; 4 5// mostly empty view, add whatever you need 6export default function TestView() { 7 const [shouldCrash, setShouldCrash] = useState(false); 8 9 if (shouldCrash) { 10 throw new Error("I crashed"); 11 } 12 13 return <Button onClick={() => setShouldCrash(true)}>Crash me!</Button>; 14}