Thinking about to create a PR to add some standard html attributes to the props type.
Since there are two different types (ReactDOM.domProps
and JsxDOM.domProps
) I don’t know which one is the right one.
In the react repo, I see some deprecation warnings, but they doesn’t make sense for me.
module Props = {
@deprecated("Please use type ReactDOM.domProps")
type domProps = JsxDOM.domProps
/** DEPRECATED */
@deriving(abstract)
@deprecated("Please use type ReactDOM.domProps")
type props = {
...
}
}
Would like to get some clarification