Material design with Polymer
21–30 of 47 posts
Re: Material design with Polymer
#22Re: Material design with Polymer
#23Earlier quoted context omitted.
They're only similar in that they're both for building component based DOM UI. Polymer is tied into the WebComponents standardization effort (also driven by google-related people). Pieces of the DOM are managed by relatively small, contained objects that maintain their own internal state and keep the DOM in sync. It achieves component state synchronization via data binding like Angular or Ember and some sort of KVO m…
Is it feasible to use react.js and polymer together in an app? I mean, is it possible to do this without sacrificing the benefits of reactjs by simply writing state-ish code in reactjs? (At first blush, I can't think of a sensible way of doing this...)
[1] http://www.polymer-project.org/docs/polymer/polymer.html#lif...
That said, I don't expect it to be common since you'd basically be building a React component with a Polymer shim and getting almost no leverage out of Polymer. I suppose you could write some code to parse out the html template and turn it into React.DOM equivalents but that seems like a lot of effort.
All React integrations I've seen are the result of introducing React into a legacy codebase or they're using React on a component that's rendering a very large DOM subtree and taking advantage of React's O(N_view) instead of O(N_model) scaling and batched updates for perf wins over current KVO techniques.
Re: Material design with Polymer
#24Earlier quoted context omitted.
Also the elements themselves don't render properly in FF24 (work mandated): http://imgur.com/AyactvC
Doesn't work properly in FF30 either.
Re: Material design with Polymer
#25Earlier quoted context omitted.
Is it feasible to use react.js and polymer together in an app? I mean, is it possible to do this without sacrificing the benefits of reactjs by simply writing state-ish code in reactjs? (At first blush, I can't think of a sensible way of doing this...)
Haven't tried it but you can integrate React with pretty much anything. Looking at the Polymer lifecycle methods[1], I'd start by trying a `React.renderComponent` in Polymer's `domReady` callback for an element and then setState/setProps/forceUpdate in the `attributeChanged` callback. [1] http://www.polymer-project.org/docs/polymer/polymer.html#lif... That said, I don't expect it to be common since you'd basically be…
Re: Material design with Polymer
#26Not encouraging: http://imgur.com/riycCA1
Re: Material design with Polymer
#27Re: Material design with Polymer
#28Earlier quoted context omitted.
Haven't tried it but you can integrate React with pretty much anything. Looking at the Polymer lifecycle methods[1], I'd start by trying a `React.renderComponent` in Polymer's `domReady` callback for an element and then setState/setProps/forceUpdate in the `attributeChanged` callback. [1] http://www.polymer-project.org/docs/polymer/polymer.html#lif... That said, I don't expect it to be common since you'd basically be…
Yeah, what I'd want is the polymer "look and feel" and the react update model... doesn't seem like that's possible.
Re: Material design with Polymer
#29Not encouraging: http://imgur.com/riycCA1
https://www.dropbox.com/s/qiqbrs0d55qgf6e/Screenshot%202014-...
Re: Material design with Polymer
#30In Polymer ajax is an element: https://github.com/PolymerLabs/polymer-ajax/blob/master/test...
I liked a lot of what I saw in the project, but this "ajax as an element" makes me want to facepalm, or at least scratch my head and wonder "why?!?"
Can someone from the polymer team elaborate the reasoning behind this?