MCPcopy Create free account
hub / github.com/Lucifier129/react-lite / wrapUserProvidedKey

Function wrapUserProvidedKey

examples/simple/react.js:17042–17044  ·  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

17040 * @return {string}
17041 */
17042function wrapUserProvidedKey(key) {
17043 return '$' + escapeUserProvidedKey(key);
17044}
17045
17046/**
17047 * @param {?*} children Children tree container.

Callers 2

getComponentKeyFunction · 0.70
traverseAllChildrenImplFunction · 0.70

Calls 1

escapeUserProvidedKeyFunction · 0.70

Tested by

no test coverage detected