I have a binding for Headless UI Dialog that stopped working recently. Maybe after upgrading to Rescript 11. The generated JS now has _open instead of open and I’m not sure why. I tried underscore prefix and suffix but both failed to have any effect.
I’m not sure, what you are actually trying to ask, since your code example seems alright.
I believe name-mangling (special handling for names containing underlines at specific positions) was recently changed.
Because we have @as("name") and \"name". I added the second possibility to your example: Example in playground
That’s a breaking change in ReScript 11. The workaround is to use @as("open") as you did, although if you have JSX v3 enabled, it might not work. Try upgrading to JSX v4.
Both fixes seem to work. I didn’t know about the quote syntax, it might be missing from the docs. The JSX setting confused me a little, but after checking the schema I learned that the JSX setting changed from "reason": {react-jsx: 3} to "jsx": {"version": 4}.