Unable to use :key in JSX #3976
-
I am using JSX with typed-html to generate static markup and send to the client. I am using Alpine on the client for a bit of interactivity. However, I was not able to use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is not an Alpine issue. You need to extend the JSX interface to provide additional attributes to the element interface. technically, :key is just |
Beta Was this translation helpful? Give feedback.
-
Hi how did you figure out the modifiers? I am using JSX with typed-html on Hono (Bun) for now i am wrapping it on html`` if some bindings causes error |
Beta Was this translation helpful? Give feedback.
This is not an Alpine issue.
You need to extend the JSX interface to provide additional attributes to the element interface.
technically, :key is just
x-bind:key
as a special case