2 ms·
> …very often the HTML, the JS and the CSS were all very much concerned with one another e.g. a React component where the rendered HTML, the logic behind it and
by CharlesW 3y ago
> …very often the HTML, the JS and the CSS were all very much concerned with one another e.g. a React component where the rendered HTML, the logic behind it and how it's styled make sense to live next to one another.
This is why I absolutely love Vue single-file components. AFAIK, there’s no elegant substitute for these in React.
https://vuejs.org/guide/scaling-up/sfc.html https://vuejs.org/guide/scaling-up/sfc.html
- agency 3y agoNot trying to start a flame war but what can you do with these that can't be accomplished with React and e.g. https://styled-components.com https://styled-components.com ?