Y
Hacker News
new
|
ask
|
show
|
jobs
by
tym0
126 days ago
Do you still have to pass every args as json/strings or has there been an improvement on that front?
2 comments
balloob
126 days ago
This has never been the case. Custom elements are DOM Elements and so are just JavaScript objects. Just like you can do aEl.disabled = true, you can set any prop to any type of value.
link
gedy
126 days ago
I think they mean in the markup via <some-tag data={anObject}> ala React, svelte, etc.
link
lloydatkinson
126 days ago
It's still exactly like that.
link