fix: reviving multiple islands on one page (#197)

Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
Sylvain Cau
2022-06-07 15:02:48 +02:00
committed by GitHub
co-authored by Luca Casonato
parent 458fe2ca3c
commit afafb7c938
7 changed files with 140 additions and 32 deletions
+13
View File
@@ -0,0 +1,13 @@
/** @jsx h */
import { h } from "$fresh/runtime.ts";
import Counter from "../../islands/Counter.tsx";
export default function Home() {
return (
<div>
<Counter id="counter1" start={3} />
<Counter id="counter2" start={10} />
</div>
);
}