solidjs/html use: attributes
What's the correct syntax for
use:
attributes when using lit-dom-expressions
? I've tried html`<div use:${myFunction}></div>`
but that doesn't work and any properties following the use:
are omitted.4 Replies
it doesn't work when I pass a value, either
html`<div use:${myFunction}="example"></div>`
I'm using this API because I'm wanting to use solidjs to build the UI for a greasemonkey scripti think it's a bug, before this is solved you could workaround to
ref
it's essentially the same thingI can't test right now, but can I have multiple
ref
? I think that's the primary advantage of use:
can workaround obviously by mapping over callbacks, but it's got more syntaxyeah, something like this could help a little bit
solid doesn't actually care if you pass some prop multiple times so multiple ref also works