p-stream/src/pages/developer/TestView.tsx
2024-02-26 10:54:56 -05:00

12 lines
323 B
TypeScript

import { useState } from "react";
import { Button } from "@/components/buttons/Button";
// mostly empty view, add whatever you need
export default function TestView() {
const [val, setVal] = useState(false);
if (val) throw new Error("I crashed");
return <Button onClick={() => setVal(true)}>Crash me!</Button>;
}