rescript-react
rescript-react copied to clipboard
How to use aria-current?
Why this prop is under comment - https://github.com/rescript-lang/rescript-react/blob/master/src/ReactDOM.res#L1091 ?
<li className="px-4 text-gray-700" ariaCurrent="page"> {"Blog"->React.string} </li>
This argument cannot be applied with label ~ariaCurrent
Back then there was no way to seamlessly map this from ReScript to JavaScript. Now with poly-variants mapping to strings, it should be possible to map these attributes.
See also https://github.com/rescript-lang/rescript-compiler/issues/5708.
Done in https://github.com/rescript-lang/rescript-compiler/pull/5723.