import {
jsx,
VLayout,
Panel,
Gravity,
Group,
LayoutSpec,
Text,
makeRef,
} from "doric";
function createFragment() {
return (
<>
>
);
}
@Entry
class Counter extends Panel {
build(root: Group) {
const fragments = createFragment();
const ref = makeRef();
let count = 0;
{
count++;
ref.current.text = `${count}`;
}}
/>
{fragments}
{[0, 1, 2, 3].map((i) => (
<>
>
))}
;
}
}