logoalt Hacker News

tym0yesterday at 11:05 AM2 repliesview on HN

Do you still have to pass every args as json/strings or has there been an improvement on that front?


Replies

balloobyesterday at 12:18 PM

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.

show 1 reply
lloydatkinsonyesterday at 11:42 AM

It's still exactly like that.