Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1787

Extending JsxDOM.domProps

$
0
0

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 :slight_smile:


Viewing all articles
Browse latest Browse all 1787

Trending Articles