DEV Community

Discussion on: Why to use React if HTML/CSS/JS works fine?

Collapse
 
nicozerpa profile image
Nico Zerpa (he/him)

You're making a great point! There are many situations in which React is not necessary and using just HTML/CSS/Vanilla JS is perfectly fine. It's important to choose the right tools for the job.

However, I think the code samples on dev.to/t/react are just fine. The purpose of those samples is to explain a specific library, concept, or feature. They have to use simple snippets so that readers can easily understand what they're trying to teach.

I think React (or Vue.js, or Svelte, etc) is a good choice for web apps that do a lot of DOM modification (i.e. dynamically changing the HTML elements of the page) that depends on the application state.