Document replaceWith component.
Install with component(1):
$ component install cristiandouce/replaceWith
var view = require('myView');
var replaceWith = require('replace-with');
// Search in DOM for container and
// replaces with view Element
replaceWith('body .app-container', view.render());
Replaces selector
match in DOM for element
Element.
MIT