Hi, is there a plan to fix the JSX data-attributes issue in version 12 (or at all) of ReScript?
The documentation only shows nightmarish hacks for adding data attributes (Components and Props | React handling-invalid-prop-names-eg-keywords ), but this is unusable in the case of large design systems/component packages that rely on data attributes (ex. for CSS manipulation)
<div data={
"user-id": 123,
"role": "admin",
"active": true
}>
{ React.String("User Card") }
</div>
/* This will render as: */
<div class="card" data-user-id="123" data-role="admin" data-active="true">
User card
</div>
You still have to use raw JS because of the dashes (let me know if anyone has a better suggestion). I also haven’t tried generic JSX transform with ReScript React though.