mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-30 05:08:42 +00:00
12 lines
323 B
TypeScript
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>;
|
|
}
|