fix: incorrect island child validation (#1740)

This commit is contained in:
Marvin Hagemeister
2023-09-06 11:11:52 +02:00
committed by GitHub
parent 96d8eb4ffc
commit 227cefbf50
4 changed files with 40 additions and 4 deletions
@@ -0,0 +1,24 @@
import { PassThrough } from "../islands/PassThrough.tsx";
function Foo() {
return <h1>foo</h1>;
}
export default function Page() {
return (
<div id="page">
<PassThrough>hello</PassThrough>
<PassThrough>{2}</PassThrough>
<PassThrough>{null}</PassThrough>
<PassThrough>{true}</PassThrough>
<PassThrough>{false}</PassThrough>
<PassThrough>{undefined}</PassThrough>
<PassThrough>
<h1>hello</h1>
</PassThrough>
<PassThrough>
<Foo />
</PassThrough>
</div>
);
}