@@ -92,17 +92,6 @@ function wrapReasonForJs(component, jsPropsToReason) {
92
92
let dummyInteropComponent = basicComponent ( "interop" ) ;
93
93
94
94
function wrapJsForReason ( reactClass , props , children ) {
95
- let jsElementWrapped = ( extra , extra$1 ) => {
96
- let props$1 = Object . assign ( Object . assign ( { } , props ) , {
97
- ref : extra$1 ,
98
- key : extra
99
- } ) ;
100
- let varargs = Js_array . concat ( children , [
101
- reactClass ,
102
- props$1
103
- ] ) ;
104
- return React . createElement . apply ( null , varargs ) ;
105
- } ;
106
95
return {
107
96
debugName : dummyInteropComponent . debugName ,
108
97
reactClassInternal : dummyInteropComponent . reactClassInternal ,
@@ -117,7 +106,17 @@ function wrapJsForReason(reactClass, props, children) {
117
106
initialState : dummyInteropComponent . initialState ,
118
107
retainedProps : dummyInteropComponent . retainedProps ,
119
108
reducer : dummyInteropComponent . reducer ,
120
- jsElementWrapped : jsElementWrapped
109
+ jsElementWrapped : ( extra , extra$1 ) => {
110
+ let props$1 = Object . assign ( Object . assign ( { } , props ) , {
111
+ ref : extra$1 ,
112
+ key : extra
113
+ } ) ;
114
+ let varargs = Js_array . concat ( children , [
115
+ reactClass ,
116
+ props$1
117
+ ] ) ;
118
+ return React . createElement . apply ( null , varargs ) ;
119
+ }
121
120
} ;
122
121
}
123
122
0 commit comments