debugworkbench / hydragon

Extensible multi-platform debugger frontend
MIT License
1 stars 0 forks source link

Consider ditching Polymer #22

Open enlight opened 8 years ago

enlight commented 8 years ago

It's too hard to write Polymer elements in TypeScript due to Polymer's reliance on mixins. To get around lack of typing for mixins I had to create a fake class to model Polymer.Base and then strip it away with Babel from the code generated by TypeScript... that's just silly. The question is what should I replace Polymer with? React has some nice ideas, but at the end of it all you end up with a div soup.

enlight commented 8 years ago

For the time being I'm creating React components that contain relatively simple Polymer elements (primarily the paper ones), and wrapping some of the Polymer elements in React components to make them easier to compose in React. At some point I may replace the Polymer elements with the React components from http://ant.design but for the time being it seems like the Polymer element set is more extensive, and it's easier to keep using the Polymer elements than switching to the Ant Design components.