MCPcopy Create free account
hub / github.com/Lobos/react-ui / wrapUserProvidedKey

Function wrapUserProvidedKey

docs/lib/react.js:17600–17602  ·  view source on GitHub ↗

* Wrap a `key` value explicitly provided by the user to distinguish it from * implicitly-generated keys generated by a component's index in its parent. * * @param {string} key Value of a user-provided `key` attribute * @return {string}

(key)

Source from the content-addressed store, hash-verified

17598 * @return {string}
17599 */
17600function wrapUserProvidedKey(key) {
17601 return '$' + escapeUserProvidedKey(key);
17602}
17603
17604/**
17605 * @param {?*} children Children tree container.

Callers 2

getComponentKeyFunction · 0.85
traverseAllChildrenImplFunction · 0.85

Calls 1

escapeUserProvidedKeyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…