DEV Community

Discussion on: Why are we using single file components in the first place?

Collapse
 
alainvanhout profile image
Alain Van Hout

There is nothing inherently better or worse in using single file components. Editors like VSCode understand what they are programmed so understand, no more no less. The fact that JSX is better supported than e.g. Vue or Svelte is because people have done the work for JSX but not (yet) for Vue or Svelte.

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

You might argue that the best support is for single files such as CSS, JS and HTML having been around the longest and would be on the core support list for the editor development team. So yes any DSL is going to be worse for support depending on the community.

For typescript the fault is the integration between the Typescript language server and the author of the plugin.