mirror of
https://github.com/bobwen-dev/react-templates
synced 2025-04-12 00:56:39 +02:00

* Single child for rt-template (fixes #138) * Nested scope functions (fixes #139) * Forbid nested rt-import (fixes #134) * Vendor prefixes style keys (#144) * Renamed test file * Forbid expressions in style keys (#145) * fixed rt-import and AMD (#147) * Updated documentation * Fixed links in README.md * Sanitize comments (fix #158) * Disable comments when es6 (fix#157) * Added test case for comments * Simplified TypeScript output * Test cases for simplified TypeScript output * Fixed wrong TypeScript output (#161) * fix repeat with custom index (#162)
25 lines
660 B
JavaScript
25 lines
660 B
JavaScript
define([
|
|
'react',
|
|
'lodash'
|
|
], function (React, _) {
|
|
'use strict';
|
|
return function () {
|
|
return React.createElement('div', {}, React.createElement('span', {
|
|
'style': {
|
|
MozTransform: '2',
|
|
msTransform: '2',
|
|
OTransform: '2',
|
|
WebkitTransform: '2',
|
|
transform: '2'
|
|
}
|
|
}), React.createElement('span', {
|
|
'style': {
|
|
MozTransform: '2',
|
|
msTransform: '2',
|
|
OTransform: '2',
|
|
WebkitTransform: '2',
|
|
transform: '2'
|
|
}
|
|
}));
|
|
};
|
|
}); |