DEV Community

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

Collapse
 
etienneburdet profile image
Etienne Burdet

This first definition is probably the most accepted one… although a lot of "packages" will fit into both categories. Think Mapbox, Formik or React for example, but even smaller libraries have "slots for your code" at some level.

The question is more: did ever have any real problems mistaking for the other? Did you ever solve anything by distinguishing one from the other? It's not like you're going to mistake react-dropdown for NextJS and it's not like labelling will help you choose between create-react-app and NextJS.