feat: support async route components (#1388)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { useSignal } from "@preact/signals";
|
||||
|
||||
export default function FooIsland() {
|
||||
const sig = useSignal(0);
|
||||
return (
|
||||
<button
|
||||
onClick={() => sig.value += 1}
|
||||
class="bg-gray-200 py-2 px-4 rounded m-8"
|
||||
>
|
||||
update {sig}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user