// /routes/testpage.tsx
export default define.page((props) => {
// programmatically invoking the IslandCounter "tsx style":
const counter = <IslandCounter count={useSignal(11)} />;
return createElement(
"div",
null,
[
"Hello",
counter,
"Goodbye",
],
);
});
// /routes/testpage.tsx
export default define.page((props) => {
// programmatically invoking the IslandCounter "tsx style":
const counter = <IslandCounter count={useSignal(11)} />;
return createElement(
"div",
null,
[
"Hello",
counter,
"Goodbye",
],
);
});