It brings proper encapsulation based on web components standards. Also it is a library - but the wealth of components for all kinds of tasks makes it functional enough to create full SPA applications in it without throwing tons of other solutions to get something working.
It brings proper encapsulation based on web components standards.
Right, some other comment pointed it out by now; I think my head was just too far up React's ass to realise that this actually very much helps you build up an app if you haven't done it that way yet :)
I don't care that much for pre-built components, but I can see how that is to some advantage to some.
Well - you need to use ajax or whatever in your applications - so polymer library provides you with tons of compnents for various tasks, inifinite lists, local-storage, routing etc. You just drop this in and you suddently have eveerything that a "full framework" like angular or aurelia would provide you. But you can mix and match whatever you want to get very powerful results. Or create new components by composition of simple elements.
That's an interesting point: as far as I understand, the "components" Polymer uses for e.g. AJAX calls are DOM elements you add to perform that call, right?
If that's the case: why is that not as crazy as I think it is? (As in: I considered React's use of JSX weird as well, but then once you start to use it it makes sense - I can imagine this being a similar situation.)
1
u/ergo14 Sep 16 '16
It brings proper encapsulation based on web components standards. Also it is a library - but the wealth of components for all kinds of tasks makes it functional enough to create full SPA applications in it without throwing tons of other solutions to get something working.