Live data from Hacker News

Stencil – A reusable web component generator

stenciljs.com

71–80 of 107 posts

Re: Stencil – A reusable web component generator

#71

content won't show for me (latest firefox beta, 56b05) : Failed to register/update a ServiceWorker for scope ‘https://stenciljs.com/docs/’: Bad Content-Type of ‘text/html’ received for script ‘https://stenciljs.com/docs/sw.js’. Must be ‘text/javascript’, ‘application/x-javascript’, or ‘application/javascript’. Error DOMException [SecurityError: "The operation is insecure." code: 18 nsresult: 0x80530012] intro:19:41

Refresh on the home page and it should be fixed (:

Re: Stencil – A reusable web component generator

#72

> Stencil components are rendered using JSX... What's the point? Why not just use React? Like many others - I dropped Cordova and Ionic in favor of React-Native. So, what is Ionic trying to do here? Are they throwing in the towel and adopting React? Will they end up making a kit that renders native components using JSX just like React-Native?

> Like many others - I dropped Cordova and Ionic in favor of React-Native.

Few years ago PhoneGap apps were really slow and ugly. So I built native Android app. This year I started building hybrid Ionic 3 app because it has to work on Android and iOS. It works good enough on Nexus 5 (Snapdragon 800). The biggest problem is 4-5 seconds startup time. Stencil and component lazy loading should greatly reduce that startup time (to 1-2 seconds I hope).

Re: Stencil – A reusable web component generator

#73
post #72

> Stencil components are rendered using JSX... What's the point? Why not just use React? Like many others - I dropped Cordova and Ionic in favor of React-Native. So, what is Ionic trying to do here? Are they throwing in the towel and adopting React? Will they end up making a kit that renders native components using JSX just like React-Native?

> Like many others - I dropped Cordova and Ionic in favor of React-Native. Few years ago PhoneGap apps were really slow and ugly. So I built native Android app. This year I started building hybrid Ionic 3 app because it has to work on Android and iOS. It works good enough on Nexus 5 (Snapdragon 800). The biggest problem is 4-5 seconds startup time. Stencil and component lazy loading should greatly reduce that startup…

Thanks. And yes, this will fix that problem for good, and should be quite a bit under that budget for Cordova apps!

Re: Stencil – A reusable web component generator

#75
post #49

Earlier quoted context omitted.

Sure looks terrible on Edge, Chrome, and Firefox on Windows 10. Gray on gray makes for terrible contrast.

Hello all! We just deployed a new version of the site that should solve some of these problems, thanks for the feedback.

The font is still pretty tough to read on Windows/Firefox. It would be way more legible with a 400 font-weight.

Re: Stencil – A reusable web component generator

#76

Hey all, founder of Ionic (team behind Stencil) here. Didn't expect to see this up on HN so soon (released this morning), thanks for understanding there's still rough edges with docs, etc We built Stencil for a selfish reason: we needed more mobile web performance for Ionic apps being deployed as PWAs (in addition to App Store apps) and we were struggling getting that with traditional framework component/bundle appro…

What kind of events are stencil events? In order to respond to an emitted stencil event, do I have to use the stencil listener, or can I use addEventListener?

Re: Stencil – A reusable web component generator

#77

Earlier quoted context omitted.

basically Chrome (I just saved you a click)

...and Safari? Which is actually a pretty popular browser (with good reason).

Safari 10.1 = 2.64%

Safari 10.0 = 0.64%

Safari 8.0 = 0.33%

Safari 9.1 = 0.27%

===================

Total = 3.88%

For July 2017 according to NetMarketshare.

I wouldn't call a 3.88% install base "pretty popular". It's also offers a terrible developer experience

cf: https://www.netmarketshare.com/browser-market-share.aspx?qpr...

Re: Stencil – A reusable web component generator

#78
post #39

How is this licensed? Perhaps I'm missing it, but I can't seem to find mention of it on the site or in the repo: https://github.com/ionic-team/stencil

Ah good catch. It's MIT (will get that up soon)

Have you considered a BSD + PATENTS license? :P

Re: Stencil – A reusable web component generator

#80
post #59

Earlier quoted context omitted.

> WebComponents in general are a solution in search of a problem Maybe they don't solve your problem, but they certainly seem to solve Ionic's or Netflix's problems (or mine for that matter).

"React seems to solve Facebook's problems (or mine for that matter)" "Vue.js seems to solve Gitlab's problems (or mine for that matter)" etc. Throwing big names around amounts to pretty much nothing.

But thats exactly true, companies build solutions that solve their problems. No secret knowledge here.
Post reply on HN