File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ type params<'error> = {
14
14
info : info ,
15
15
}
16
16
17
- let getErrorBoundary : reactComponentClass => React . element = %raw (`
17
+ let getErrorBoundary = %raw (`
18
18
function (Component ) {
19
19
function ErrorBoundary (props ) {
20
20
Component .call (this );
@@ -31,6 +31,12 @@ let getErrorBoundary: reactComponentClass => React.element = %raw(`
31
31
}
32
32
` )
33
33
34
- @react.component
35
- let make = (~children as _ : React .element , ~fallback as _ : params <'error > => React .element ) =>
36
- getErrorBoundary (component )
34
+ @obj
35
+ external makeProps : (
36
+ ~children : React .element ,
37
+ ~fallback : params <'error > => React .element ,
38
+ ~key : string = ?,
39
+ unit ,
40
+ ) => {"children" : React .element , "fallback" : params <'error > => React .element } = ""
41
+
42
+ let make = getErrorBoundary (component )
You can’t perform that action at this time.
0 commit comments