I’ve used things like Tailwind CSS and Next.js and I know that Tailwind CSS has predefined CSS classes and Next.js allows you to use HTML while allowing JavaScript integration, but what really is a framework? Is there a definition or something that would be able to classify React as a library but Next.js as a framework?
In: Technology
Imagine if you were creating a building, and you could just instantly pop in a full frame, floors, electrical, piping, etc. That would be a framework, which you can then use to build an office or a hotel or an apartment building.
Similarly in programming, a framework is a lot of code that does common stuff that nobody wants to rewrite for the millionth time. If you’re making a web application, you want to spend more time working on the actual application logic and not on the web server component. So you use a framework that handles the webserver stuff instead and hook into that, saving time and effort.
Latest Answers