logoalt Hacker News

balloobyesterday at 12:18 PM1 replyview on HN

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.


Replies

gedyyesterday at 1:43 PM

I think they mean in the markup via <some-tag data={anObject}> ala React, svelte, etc.