mirror of
https://github.com/bobwen-dev/react-templates
synced 2025-04-12 00:56:39 +02:00
changed back to react instead of react/addons
This commit is contained in:
parent
4654770a10
commit
8059810f54
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user