changed back to react instead of react/addons

This commit is contained in:
Avi Marcus 2014-12-03 12:44:44 +02:00
parent 4654770a10
commit 8059810f54
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ function extractDefinesFromJSXTag(html, defines) {
function convertTemplateToReact(html, options) {
var rootNode = cheerio.load(html, {lowerCaseTags: false, lowerCaseAttributeNames: false, xmlMode: true, withStartIndices: true});
options = options || {};
var defines = {'react/addons': 'React', lodash: '_'};
var defines = {'react': 'React', lodash: '_'};
html = extractDefinesFromJSXTag(html, defines);
var context = defaultContext();
context.html = html;