3 ms·
Yeah, the author seems a little crazy about web components being approved. React and JSX are still good and they're not instantly disappearing or anything. > S
by greenyouse 10y ago
Yeah, the author seems a little crazy about web components being approved. React and JSX are still good and they're not instantly disappearing or anything.
> Shadow DOM makes it hard to theme your app
The styling is a little different from normal but not too bad after getting the hang of it. There's usually a few components for colors, fonts, and common app styles (see paper-styles [1]). A few other components can provide CSS helper classes (e.g. Polymer's spin on flexbox [2]). CSS properties make tweaking component styles pretty easy, which makes the components more reusable. There are probably other styling tricks that'll pop up over time too.
(you don't have to use Polymer, I picked it because it's what I'm most familiar with)
[1] https://www.webcomponents.org/element/PolymerElements/paper-styles https://www.webcomponents.org/element/PolymerElements/paper-...
[2] https://www.webcomponents.org/element/PolymerElements/iron-flex-layout https://www.webcomponents.org/element/PolymerElements/iron-f...