We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5478bca commit 0290878Copy full SHA for 0290878
src/ReactDOM.res
@@ -2100,8 +2100,9 @@ module Props = {
2100
2101
include Props
2102
2103
-// As we've removed `ReactDOMRe.createElement`, this enables patterns like
2104
-// React.createElement(ReactDOM.stringToComponent(multiline ? "textarea" : "input"), ...)
2105
-external stringToComponent: string => React.component<domProps> = "%identity"
+// Used by the ppx to generate primitive components like "div".
+// Intentionally unsafe because typechecking is enforced by the ppx.
+@deprecated("Please use JSX syntax directly.")
2106
+external stringToComponent: string => React.component<'a> = "%identity"
2107
2108
module Style = ReactDOMStyle
0 commit comments