Files
sweet/tests/fixture/islands/StringEventIsland.tsx
T
2023-07-26 13:09:42 +00:00

10 lines
297 B
TypeScript

export default function StringEventIsland() {
return (
<button // @ts-ignore - we don't officially recommend this, but lots of
// apps pre Fresh 1.2 use string based click handlers.
onClick="document.querySelector('p').textContent = 'it works'">
click me
</button>
);
}