DEV Community

Discussion on: Why use React instead of JavaScript HTML and CSS

Collapse
 
nbageek profile image
Patrick Minton

The question is a bit confusing since React is Javascript, html, and css.

So I guess maybe you are asking "Why use a framework instead of just writing things yourself?"

And the answer is probably that the framework saves you a lot of trouble -- it's got a whole slew of functionality that you would otherwise have to manage yourself, like efficiently re-rendering when state changes, templating, etc.

If your page is simple enough, maybe you don't need that overhead. But once you reach a certain level of complexity, this can save you a lot of time.