10 lines
297 B
TypeScript
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>
|
|
);
|
|
}
|