docs: function transform(tpl, config, options) {
    var transformed = compiler.transform(tpl, config);
    var rdom = transformed.code;
    var start = rdom.indexOf('React.createElement');
  
    return new Function('data', 'config', [
      'data = data || {};',
  
      'var nodes = (function jsx() {',
        rdom.slice(0, start),
        'with (data) return '+ rdom.slice(start),
      '}).call(this.props ? this : data),',
      'options = '+ JSON.stringify(options || {}) +';',
  
      'if ("DOM" === options.render || !(config || {}).html) return nodes;',
      'return ReactDOM[options.render](nodes);'
    ].join('\n'));
  }