File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,27 @@ exports['default'] = function (Target, styles) {
111
111
_createClass ( CSSModules , [ {
112
112
key : 'render' ,
113
113
value : function render ( ) {
114
+ var test = undefined ;
115
+
116
+ test = _react2 [ 'default' ] . createElement (
117
+ 'div' ,
118
+ null ,
119
+ _react2 [ 'default' ] . createElement (
120
+ 'div' ,
121
+ { className : 'foo' } ,
122
+ 'Foo'
123
+ ) ,
124
+ _react2 [ 'default' ] . createElement (
125
+ 'div' ,
126
+ { className : 'bar' } ,
127
+ 'Bar'
128
+ )
129
+ ) ;
130
+
131
+ // This works!
132
+ return test ;
133
+
134
+ // Not sure how to make this work...
114
135
// At this point I would need to use linkClass, but I cannot find a way to access
115
136
// children of Target.
116
137
return _react2 [ 'default' ] . createElement ( Target , { ref : 'test' } ) ;
Original file line number Diff line number Diff line change @@ -76,6 +76,17 @@ export default (Target, styles) => {
76
76
77
77
return class CSSModules extends React . Component {
78
78
render ( ) {
79
+ let test ;
80
+
81
+ test = < div >
82
+ < div className = 'foo' > Foo</ div >
83
+ < div className = 'bar' > Bar</ div >
84
+ </ div > ;
85
+
86
+ // This works!
87
+ return test ;
88
+
89
+ // Not sure how to make this work...
79
90
// At this point I would need to use linkClass, but I cannot find a way to access
80
91
// children of Target.
81
92
return < Target ref = 'test' /> ;
You can’t perform that action at this time.
0 commit comments