VOOZH about

URL: https://thenewstack.io/5-reasons-you-dont-always-need-a-javascript-framework/

⇱ 5 Reasons You Don't Always Need a JavaScript Framework - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2022-02-07 03:00:56
5 Reasons You Don't Always Need a JavaScript Framework
in-depth-news,
Software Development

5 Reasons You Don’t Always Need a JavaScript Framework

Not every project needs a framework. This is true for many of the languages your software engineers depend on — including JavaScript.
Feb 7th, 2022 3:00am by Jack Wallen
👁 Featued image for: 5 Reasons You Don’t Always Need a JavaScript Framework
Photo by Polina Tankilevitch from Pexels.
Frameworks are great tools to help relieve developers of having to constantly reinvent the wheel and rewrite code. When a project needs to be deployed efficiently and effectively, a framework will go a long way to helping your developer team make it happen. But not every project needs a framework. This is true for many of the languages your software engineers depend on. Does this hold true for JavaScript? You bet. JavaScript frameworks are often considered essential tools for modern frontend web development. By employing any one of the numerous frameworks, your developers can build scalable, dynamic web-based applications that can be used within your company — or even by consumers, customers, or clients. There are quite a number of frameworks to choose from, such as Vue.js, Angular, Svelte, Express.js, Bootstrap, and Django. So, when you need a framework, they’re there for the taking (and most are open source, so they’re free to use). But when might you not need a JavaScript framework? Let’s take a look at five reasons.

1. If What You’re Working on Is Simple

Truth be told, JavaScript frameworks are best used on more complicated projects for applications at scale. If you’re working on something simple and small, then a framework is going to be overkill. In fact, if you’re working on a smaller project, a framework will only complicate matters, so you’re better off doing without. Remember, the point of using a framework is to simplify your work and save time, by implementing everything you need from vanilla JavaScript. If the project you’re working on is smaller, the time you save will be overshadowed by the time you spend either getting up to speed on the framework, or adding it into the mix. If the goal of the project is to keep it simple, don’t bother with a framework.

2. When HTML and CSS Alone Will Do the Trick

Most of what you’ll be doing with a JavaScript framework is building web applications. Yes, JavaScript can help make those applications become more interactive, dynamic and exciting, but there are times when JavaScript is overkill and will slow down the performance of the site. Step back and think about this: Are HTML and CSS enough to build the website or web application? If so, then stick with the basics. Sure, you might need to add some JavaScript into the mix, but adding a framework into that process could very quickly muddy the clearer waters created by more fundamental languages. Remember this: HTML is for structure, CSS is for appearance, and JavaScript is for behavior. HTML and CSS are often crucial ingredients, whereas JavaScript is the icing on the cake. A JavaScript framework is a tool that helps you mix all of those ingredients together to bake a cake worthy of competition but adds a layer of complication you might not need… especially when you only want a basic cake.

3. If You’re Using JavaScript ES6

With the release of JavaScript ES6, the necessity for frameworks isn’t nearly as great as it once was. And with the inclusion of modules and classes with ES6, most of the popular frameworks could be thought of as obsolete. Remember, frameworks are used to abstract some of the more complex aspects of development. With the release of ES6, a number of new features (such as default parameters, template literals, multi-line strings, destructuring assignment, enhanced object literals, and arrow functions — along with modules and classes), reduces the need to even bother with frameworks for many use cases. Prior to ES6, working with things like classes was a major challenge, even though previous iterations were designed to specifically support classes. These new features of JavaScript go a long way towards making frameworks a thing of the past, because they bring certain functionalities to the language that were previously unavailable. Instead of having to employ those third-party tools, most everything will be pre-packaged within the language itself.

4. If Creative Freedom Is Your Jam

Let’s face it, when you employ a JavaScript framework, you typically can only use one and you’re limited to the constraints of that framework. When you don’t use a framework, you can style your web development exactly how you want. And given you can do just about anything you want with the combination of HTML, CSS and JavaScript, unless you’re building at scale and don’t care about creative freedom, you already have everything you need and the sky’s the limit for your creativity.

5. HTMX

HTMX is the successor to intercooler.js (which uses familiar, declarative HTML attributes to add AJAX to an application). This new library allows you to access many modern browser features (such as AJAX, CSS Transitions, WebSockets, and Server-Sent Events) directly from HTML, in place of using JavaScript. This means developers will be able to build modern interfaces without having to resort to JavaScript — and, by extension, JavaScript frameworks. From the official HTMX website, we see this example:
 <button hx-post="/clicked"
       hx-trigger="click"
       hx-target="#parent-div"
       hx-swap="outerHTML">
    Click Me!
  </button>
In this example, when a user clicks a button, an HTTP POST request is issued to /clicked, and then the response is used to replace the element using the parent-div from within the DOM.

Conclusion

Two of the main reasons for using a framework are speed and the integration of external data sources. If neither of those is an issue with your project, then a framework is only going to get in your way and squash your creativity. JavaScript frameworks certainly have their purposes and shouldn’t automatically be brushed aside. But if you have the time and inclination, building directly with HTML, CSS and JavaScript code can be very rewarding.
TRENDING STORIES
Jack Wallen is what happens when a Gen Xer mind-melds with present-day snark. Jack is a seeker of truth and a writer of words with a quantum mechanical pencil and a disjointed beat of sound and soul. Although he resides...
Read more from Jack Wallen
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.