fix: allow string based event handlers in SSR (#1515)
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user