Skip to content

Commit 87e1521

Browse files
committed
private addKeyProp
1 parent 32809fc commit 87e1521

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/React.res

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ type component<'props> = Jsx.component<'props>
1414

1515
let component = Jsx.component
1616

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}))
17+
%%private(
18+
@inline
19+
let addKeyProp = (p: 'props, k: string): 'props =>
20+
Obj.magic(Js.Obj.assign(Obj.magic(p), {"key": k}))
21+
)
2222

2323
@module("react")
2424
external createElement: (component<'props>, 'props) => element = "createElement"

0 commit comments

Comments
 (0)