Closed jchavarri closed 2 years ago
Another example:
let%component make ~onClick = React.Fragment.make ~children:[]
Error: This expression has type
< onClick : 'res Js_of_ocaml.Js.readonly_prop > Js_of_ocaml.Js.t ->
?key:string -> unit -> React__Core.element
but an expression was expected of type
< onClick : 'res Js_of_ocaml.Js.readonly_prop > Js_of_ocaml.Js.t
React.component =
< onClick : 'res Js_of_ocaml.Js.readonly_prop > Js_of_ocaml.Js.t ->
React.element
Type ?key:string -> unit -> React__Core.element
is not compatible with type React.element = React__Core.element
Will trigger this error:
but with no locations.