|
|
|
|
|
by spankalee
409 days ago
|
|
With any web component you could assign the worker to a property, either imperatively: el.worker = worker
Or declaratively: html`<my-component .worker=${worker}></my-component>`
That's using lit-html syntax, but there are a lot of other rendering libraries that work similarly. |
|
But once I decide to cross the "no dependencies" line, using something like Preact + htm as a no-build solution would also take the most of the rest of the pain away, and solve many, many other problems Web Components have no solution and no planned solution for.