Here are my questions How do you define a web component in Elm. What's the boilerplate? Can it be auto-generated from any Elm app? (my gut here says that ports become similar to on-change events)
How do you consume web components with Elm's virtual-dom. Are there issues? There used to be concerns surrounding the virtual DOM and the shadow DOM interaction. Ignoring non-Elm boilerplate, is the code better? Does it solve our concerns about components? How's performance compared to using the top-level dispatcher (particularly at scale - e.g. hundreds of datepickers) If all of the above are favorable, then we can start thinking about adding a feature to Elm. I think we learn a lot by running this experiment. On Sep 20, 2016 6:15 AM, "John Mayer" <[email protected]> wrote: > You shouldn't need Polymer. Just web components, which are a standard and > implemented in most browsers (probably all browsers on which Elm runs). > > It will be a few dozen lines of JS and HTML, and there might be quirks. If > it works, it still won't be super elegant, but it could build the case for > adopting the standard as part of Elm if these experiments go well. > > On Sep 20, 2016 5:00 AM, "Peter Damoc" <[email protected]> wrote: > >> On Tue, Sep 20, 2016 at 11:21 AM, Richard Feldman < >> [email protected]> wrote: >> >>> >>>>> If nothing is wrong with Web Components, why not use them? >>> >>> There are a ton of them >>> <https://elements.polymer-project.org/browse?package=paper-elements> >>> you could use right now, for MDL in particular, that work right off the >>> shelf. >>> >>> >> You make it sound like it's a trivial thing for a beginner to integrate >> Polymer with Elm and hit the ground running. >> >> I seriously doubt that this is the case but I'll take another look at the >> projects that have attempted to do this. :) >> >> >> -- >> There is NO FATE, we are the creators. >> blog: http://damoc.ro/ >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Elm Discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
