@@ -92,17 +92,6 @@ function wrapReasonForJs(component, jsPropsToReason) {
9292let dummyInteropComponent = basicComponent ( "interop" ) ;
9393
9494function 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- } ;
10695 return {
10796 debugName : dummyInteropComponent . debugName ,
10897 reactClassInternal : dummyInteropComponent . reactClassInternal ,
@@ -117,7 +106,17 @@ function wrapJsForReason(reactClass, props, children) {
117106 initialState : dummyInteropComponent . initialState ,
118107 retainedProps : dummyInteropComponent . retainedProps ,
119108 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+ }
121120 } ;
122121}
123122
0 commit comments