Comment by _heimdall
That approach passes values in JS rather than the DOM, right? I read the go comment as talking specifically about DOM attributes which can only be strings (well, you can have boolean attributes as well).
Web components can be passed objects in JS, but its news to me if that is available in HTML.
Neither can react