DEV Community

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

Collapse
 
bcowley1220 profile image
Brendan Cowley

There are advantages and disadvantages to either side, it really just depends on the full requirements of the project that you're working on. Using the Todo app has the example: what if you wanted to add in user authentication, integrate with your calendar API, and make it an SPA?

React is just a tool, just like angular and svelte are. I can give you an easy answer for when to use a framework... When you want to build a single page application. It is simply not worth the fuss to do it by hand in vanilla. Everything else after that is subjective, and frankly more up to personal preference than most would like to admit.

You can achieve the exact same results in vanilla that you can building an app an angular svelte, Vue, or react... And they will all have their individual hassles and problems, it just depends on which ones you want to deal with.

Now before I start getting bitched at, there are tasks that are immensely easier to do and react or a state-based framework then it is to do by hand... But it is a trade, don't fool yourself and thinking that you are coming out ahead.

Collapse
 
areeburrub profile image
Areeb ur Rub

Okay, so you say React is a tool which make things easier and it's totally depends on me what I want to use.