feat(server): plugins can create islands (#1472)

This commit is contained in:
Reed von Redwitz
2023-11-22 11:19:13 +01:00
committed by GitHub
parent ad2341dada
commit 72edafde46
9 changed files with 137 additions and 11 deletions
@@ -0,0 +1,10 @@
import { IS_BROWSER } from "../../../../src/runtime/utils.ts";
export default function IslandFromPlugin() {
const id = IS_BROWSER ? "csr_alt_folder" : "ssr_alt_folder";
return (
<div>
<p id={id}>{id}</p>
</div>
);
}