We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ac34b0 commit 85f4244Copy full SHA for 85f4244
src/React.res
@@ -432,3 +432,6 @@ external setDisplayName: (component<'props>, string) => unit = "displayName"
432
433
@get @return(nullable)
434
external displayName: component<'props> => option<string> = "displayName"
435
+
436
+@inline
437
+let addKeyProp = (o: 't, k): 't => Obj.magic(Js.Obj.assign(Obj.magic(o), {"key": k}))
0 commit comments