I want to bind to an external javascript button component that has the prop: “type”.
[@bs.module "path/to/button.js"] [@react.component]
external make:
(
~children: React.element,
~variant: string,
~color: string,
~onClick: ReactEvent.Form.t => unit,
~type: string
) =>
React.element =
"default";
Is there a way to achieve this with @react.component and without having to use the makeProps syntax?