3 ms·
Maybe not standard definition but I view a library as something that can be swapped out of a project with low-medium effort. If I build an app on React, there'
by njovin 4y ago
Maybe not standard definition but I view a library as something that can be swapped out of a project with low-medium effort.
If I build an app on React, there's not much chance I'm ever going to swap it out for anything else, thus it's a framework.
If I use Twilio's JS library for sending SMS and then decide to swap to a different vendor (or a different library for the Twilio API) that's fairly easy with the right design.
- yawaramin 4y ago> If I build an app on React, there's not much chance I'm ever going to swap it out for anything else, thus it's a framework. Preact exists though? And literally emulates React's API. It even has a guide for aliasing the Preact module as React with your bundler so your app wouldn't need any code changes. Can a framework do that?