Hi
I am using
“rescript”: “^9.1.2”,
“gentype”: “^4.0.0”
When I write the binding like the following
module Tracker = { @genType.import(("tracker", "Tracker")) @react.component external make: ( ~ariaLabel: string=?, ) => React.element = "Tracker" }
The generated gen.tsx is
export const TrackerTypeChecked: React.ComponentType<{ readonly ariaLabel?: string }> = TrackerNotChecked;
I am expecting the gen.tsx to be
export const TrackerTypeChecked: React.ComponentType<{ readonly "aria-label"?: string }> = TrackerNotChecked;
I have followed the guidelines here Components and Props | React
Seems the above documentation appiles only to the dom elements like div, button
Here is generated bs.js where external component Tracker is used
`
React.createElement("header", undefined, React.createElement(Tracker.make, { currentStep: currentStep, steps: 5, ariaLabel: "tracker" })), React.createElement("main", undefined, children)); }
`
The ariaLabel is not transformed to “aria-label”. Do I need to follow the Elements & JSX | React for passing aria-label to the non dom elements
DId I miss anything, please help