Hacker News new | ask | show | jobs
by CharlesW 1063 days 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

1 comments

Not 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 ?