Re:Show HN: Wired-elements – UI web components with a hand d...
by spankalee on Thursday May 24, 2018 @03:01PM
(#17147184)
These are web components and work fine within React already.
We shouldn't need to port every interesting UI component to every single framework anymore.
Re:Show HN: Wired-elements – UI web components with a hand d...
by hugozap on Thursday May 24, 2018 @08:13PM
(#17149621)
>These are web components and work fine within React already
I tried with a simple CodeSandbox and they are not working for me. ( Unless I'm doing something wrong? )
https://codesandbox.io/s/pp4q7kw9q7
Re:Show HN: Wired-elements – UI web components with a hand d...
by d4l3k on Friday May 25, 2018 @12:37AM
(#17150649)
There's something weird going on in Chrome. This link works in Firefox though with the webcomponents polyfill https://codesandbox.io/s/jn85y61kx9
Re:Show HN: Wired-elements – UI web components with a hand d...
by shihn on Friday May 25, 2018 @11:39PM
(#17160063)
All working with react now. There was an issue wired-elements code: Here's a react demo: https://stackblitz.com/edit/wired-elements-react?file=index....
Re:Show HN: Wired-elements – UI web components with a hand d...
by shihn on Friday May 25, 2018 @03:48AM
(#17151476)
I believe it's a shadow dom issue. Firefox doesnt support Shadow DOM yet so a 'shady dom' is used by the polyfill
Re:Show HN: Wired-elements – UI web components with a hand d...
by e111077 on Friday May 25, 2018 @06:52PM
(#17158799)
This seems to be because you are accessing the DOM of the element from the constructor which is a no no. Here's a simple repro:
https://stackblitz.com/edit/lit-element-react-attributes-loc...
Re:Show HN: Wired-elements – UI web components with a hand d...
by swyx on Friday May 25, 2018 @10:58AM
(#17154321)
stuff like this is why i have trust issues with people who try to push webcomponents on me. I'm either not smart enough to understand why i dont get it, or its just not ready yet.
Re:Show HN: Wired-elements – UI web components with a hand d...
by swyx on Thursday May 24, 2018 @05:22PM
(#17148535)
i know and it was more just an exercise for myself. polymer and react interop still isnt very nice as far as i can tell. calm down :)
Re:Show HN: Wired-elements – UI web components with a hand d...
by ergo14 on Friday May 25, 2018 @07:43AM
(#17152602)
Those elements don't use polymer, they use lit-element - it is from polymer team and uses one polymer mixin, but its not polymer base element.
Re:Show HN: Wired-elements – UI web components with a hand d...
by spankalee on Thursday May 24, 2018 @05:48PM
(#17148759)
You can just import these into JS modules and use them in JSX. Interop is fine for attributes.
I'm perfectly calm dude.
Re:Show HN: Wired-elements – UI web components with a hand d...
by spicyj on Thursday May 24, 2018 @07:22PM
(#17149383)
What could we do better?
Re:Show HN: Wired-elements – UI web components with a hand d...
by swyx on Friday May 25, 2018 @11:00AM
(#17154330)
i don't know. wanna try putting up a codesandbox to use wired-elements in a react app? would love to learn. sorry i dont know your affiliation with the polymer project or react-polymer. it just didnt seem usable when i looked at it
Re:Show HN: Wired-elements – UI web components with a hand d...
by dalacv on Thursday May 24, 2018 @04:30PM
(#17148120)
For a different free version of balsamiq, also check out
https://pencil.evolus.vn/ and use the Sketchy GUI stencil.
Re:Show HN: Wired-elements – UI web components with a hand d...
by depressedpanda on Thursday May 24, 2018 @08:20PM
(#17149661)
Thanks! I've been looking for something similar that supports Linux. Most tools I found unfortunately did not.
Re:Show HN: Wired-elements – UI web components with a hand d...
by dmix on Thursday May 24, 2018 @03:57PM
(#17147714)
Strange, that designer link doesn't load in Firefox Nightly, with this error:
Loading failed for the <script> with source “https://wiredjs.github.io/designer/bower_components/webcomponentsjs/webcomponents-hi-sd.js”.
But it works fine in Chrome. Regardless, it looks really useful but still very much beta. It could be a decent Mockingbird replacement if you could save the documents and export them as PDF/png. Plus it needs way more components.
Re:Show HN: Wired-elements – UI web components with a hand d...
by sandGorgon on Thursday May 24, 2018 @03:01PM
(#17147174)
damn! that designer looks good. I would pay for something good here.
Re:Show HN: Wired-elements – UI web components with a hand d...
by shihn on Thursday May 24, 2018 @03:03PM
(#17147201)
To give full credit, the designer was adapted from https://github.com/PolymerLabs/wizzywid
also preet's designer tool is very very very usable: https://wiredjs.github.io/designer/ basically a free balsamiq!