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 32809fc commit 87e1521Copy full SHA for 87e1521
src/React.res
@@ -14,11 +14,11 @@ type component<'props> = Jsx.component<'props>
14
15
let component = Jsx.component
16
17
-/** Use Js_obj.assign, not Js.Obj.assign, otherwise the dependency will not be picked up correctly
18
-in the ninja file. */
19
-@inline
20
-let addKeyProp = (p: 'props, k: string): 'props =>
21
- Obj.magic(Js.Obj.assign(Obj.magic(p), {"key": k}))
+%%private(
+ @inline
+ let addKeyProp = (p: 'props, k: string): 'props =>
+ Obj.magic(Js.Obj.assign(Obj.magic(p), {"key": k}))
+)
22
23
@module("react")
24
external createElement: (component<'props>, 'props) => element = "createElement"
0 commit comments