## Integrating with Other Libraries Integration with third party libraries or vanilla javascript code can be achieved via the [`config` attribute of virtual elements](mithril.md#accessing-the-real-dom). It's recommended that you encapsulate integration code in a component or a helper function. The example below shows a simple component that integrates with the [select2 library](http://ivaynberg.github.io/select2/). ```javascript //Select2 component (assumes both jQuery and Select2 are included in the page) /** @namespace */ var select2 = {}; /** select2 config factory. The params in this doc refer to properties of the `ctrl` argument @param {Object} data - the data with which to populate the