MCPcopy Create free account
hub / github.com/caseywebdev/react-list / getPropNameFromAttributeName

Function getPropNameFromAttributeName

docs/index.js:36781–36790  ·  view source on GitHub ↗
(attrName)

Source from the content-addressed store, hash-verified

36779 setProp(domElement, tag, lastProp, _propKey8, nextProps, propKey);
36780 }
36781 function getPropNameFromAttributeName(attrName) {
36782 switch (attrName) {
36783 case "class":
36784 return "className";
36785 case "for":
36786 return "htmlFor";
36787 default:
36788 return attrName;
36789 }
36790 }
36791 function getStylesObjectFromElement(domElement) {
36792 var serverValueInObjectForm = {};
36793 domElement = domElement.style;

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…