You integrate a library into an existing app simply by importing it into your code base and using any of its convenience methods as you wish. When using a library, your app comes first. You organize your code however you want and you simply integrate calls to the library's convenience methods to make your coding easier or more concise. By contrast, building an app using a framework requires you to use a structure prescribed by the framework. So instead of building an app and adding the framework to your code, as you do with a library, you instead build an app using the framework structure and then add your own code onto that.
To make everything work together, I need to swap out each piece with something that does the same job, but works with the new base. In the metaphor, my clean white table, and in my app, the browser, which will be the only parser for whatever code I deploy.
- Replacing jQuery Ajax requests with Fetch requests
- Implementing data binding
- Replacing simple animations
- Ensuring backwards compatibility