TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Why are frameworks necessary when plain HTML/CSS/JS are simpler?

6 pointsby gymshoesabout 7 years ago
I just started to learn react and I was making a simple Login form with it.<p>I was thinking to make it similar to the one I had made before and it seemed very much simpler with plain old HTML and CSS.<p>Even though the styling is similar to follow, it&#x27;s very much simpler in plain CSS. Just add text to classes instead of searching for the style in one of the many files.

4 comments

rwieruchabout 7 years ago
The one question you need to ask yourself when starting a new project: what&#x27;s the end goal in size and complexity?<p>If it&#x27;s only a static website, for instance a blog or your personal portfolio, HTML &amp; CSS with a couple of vanilla JavaScript functions is fine. However, once you add complexity to your application, by using more than a couple of utility JavaScript functions, there needs to be some kind of &quot;framework&quot; to organize your View and Logic. React is used when it comes to organizing your view as components, and JavaScript ES5 and beyond is doing the rest by adding the necessary business logic. That&#x27;s what makes React so great in the end, because most of it simply stays plain JavaScript [0]. React is only the view layer by organizing your application in components.<p>In case you are interested, just recently I had written down my thoughts [1] on this questions for people learning React, Angular or Vue nowadays, but questioning why they should learn it in the first place.<p>- [0] <a href="https:&#x2F;&#x2F;www.robinwieruch.de&#x2F;essential-react-libraries-framework" rel="nofollow">https:&#x2F;&#x2F;www.robinwieruch.de&#x2F;essential-react-libraries-framew...</a><p>- [1] <a href="https:&#x2F;&#x2F;www.robinwieruch.de&#x2F;why-frameworks-matter" rel="nofollow">https:&#x2F;&#x2F;www.robinwieruch.de&#x2F;why-frameworks-matter</a>
duzchipabout 7 years ago
Well yes, for small simple static projects vanilla HTML&#x2F;CSS&#x2F;JS(with jquery though) is probably simpler. The problem is when you reach &quot;real life sized&quot; projects. When a project should do more than show a form and a few images and some text.<p>Frameworks are useful to standardize how many developers in a single project develop together. It also eases binding dynamic views to datasources (databases or API:s or similar). And as a third i&#x27;d say that many of the everyday &quot;gotchas&quot; are sorted out in mature frameworks so the developers can focus on the stuff that actually matters.<p>I am - on the other hand - one of those who argue that frameworks also bring a lot of evil into development. Especially in JS where frameworks are built on top of frameworks which are built on top of frameworks. But I wont bring out those arguments here since the question was &quot;Why to use frameworks&quot; not &quot;Why to avoid them&quot;.<p>Happy Hacking!
matt_sabout 7 years ago
Frameworks are needed to get developers past disagreements on organization of code and focus on delivering business value. They also help organize work for larger teams of people working together.<p>If you are solo and your application is going to be small they are probably unnecessary. If you are learning or already know how to use a framework, then it helps in the long run by taking care of lots of things to make your life easier.
tboyd47about 7 years ago
People just don&#x27;t know how to build a website with plain HTML&#x2F;CSS anymore. Frameworks have dominated the front-end for so long, it&#x27;s just what you do.