fix: allow string based event handlers in SSR (#1515)

This commit is contained in:
Marvin Hagemeister
2023-07-25 15:32:58 +02:00
committed by GitHub
parent 5e7d954e7c
commit 71c0434f46
6 changed files with 200 additions and 93 deletions
@@ -0,0 +1,9 @@
export default function StringEventIsland() {
return (
<button // @ts-ignore - we don't officialy 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>
);
}