Does React really violate Separation of Concern by putting HTML and JS in a single file?

View other answers to this thread
Start a personal dev blog on your domain for free and grow your readership.

3.4K+ developers have started their personal blogs on Hashnode in the last one month.

Write in Markdown · Publish articles on custom domain · Gain readership on day zero · Automatic GitHub backup and more

Jiri Spac's photo

No because HTML and JS should not be your primary concerns in a frontend app. How do you split your app into a set of simple and reusable components-that should be your primary concern.