4 ms·
I love single file components. I used Polymer before React and that is the thing I miss the most. I've also been using CSS-in-JS for the same reason. I landed o
by octalmage 9y ago
I love single file components. I used Polymer before React and that is the thing I miss the most. I've also been using CSS-in-JS for the same reason. I landed on JSS for now, but I'm hoping we'll see a solid scoped CSS solution soon.
- petepete 9y agoI'm still to be totally convinced by single page components, the idea of mixing languages within a file just doesn't feel right. I think I'd prefer to have a component directory with HTML, JS/TS and CSS/SCSS files in.
- ergo14 9y agoDoesn't that depend on pipeline? I've been doing for polymer components with html css and js split into separate files. They get concatenated into single file in build process.
- dave7 9y agoI've been very impressed with styled-components - it's outstanding. Inline, scoped, fully native CSS. If you're using vscode add plugin "Template literal editor" and you get full intellisense on the CSS too!