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

Function prefixKey

docs/lib/react.js:481–483  ·  view source on GitHub ↗

* @param {string} prefix vendor-specific prefix, eg: Webkit * @param {string} key style name, eg: transitionDuration * @return {string} style name prefixed with `prefix`, properly camelCased, eg: * WebkitTransitionDuration

(prefix, key)

Source from the content-addressed store, hash-verified

479 * WebkitTransitionDuration
480 */
481function prefixKey(prefix, key) {
482 return prefix + key.charAt(0).toUpperCase() + key.substring(1);
483}
484
485/**
486 * Support style names that may come passed in prefixed by adding permutations

Callers 1

react.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…