DEV Community

Discussion on: What's the difference between a library and a framework?

Collapse
 
sourabhbagrecha profile image
Sourabh Bagrecha

I believe a framework is something that’s more opinionated in ways we use it.
On the other hand a Library is a helper tool that we can use as per our needs, anytime-anywhere. Libraries are unopinionated and doesn’t enforce a structure to be followed every time, instead it provides a lot flexibility.
Though there are many cases where a Library enforces a particular way of doung things, but that’s mostly just a particular part of it or otherwise an exception.