File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ type params<'error> = {
1414 info : info ,
1515}
1616
17- let getErrorBoundary = %raw (`
17+ let getErrorBoundary : reactComponentClass => React . element = %raw (`
1818 function (Component ) {
1919 function ErrorBoundary (props ) {
2020 Component .call (this );
@@ -31,12 +31,6 @@ let getErrorBoundary = %raw(`
3131 }
3232` )
3333
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 )
34+ @react.component
35+ let make = (~children as _ : React .element , ~fallback as _ : params <'error > => React .element ) =>
36+ getErrorBoundary (component )
You can’t perform that action at this time.
0 commit comments