Files
sweet/tests/fixtures_islands/EscapeIsland.tsx
T
Marvin Hagemeister 88c3671a09 fix: error handling in fs routes (#2474)
Ran into an issue where we weren't responding with the correct status
code and passed response headers. This was a bit of a rabbit hole and it
was caused by us wrapping to more error handling middlewares than
necessary.
2024-05-31 14:27:36 +02:00

17 lines
326 B
TypeScript

import { useEffect } from "preact/hooks";
import { useSignal } from "@preact/signals";
export function EscapeIsland(_props: { str: string }) {
const active = useSignal(false);
useEffect(() => {
active.value = true;
}, []);
return (
<div class={active.value ? "ready" : ""}>
it works
</div>
);
}