code: function init (cfg) {
    renderer.Document = cfg.Document;
    renderer.Element = cfg.Element;
    renderer.Comment = cfg.Comment;
    renderer.sendTasks = cfg.sendTasks;
  }
docs: Prepare framework config, basically about the virtual-DOM and JS bridge.
  @param {object} cfg