MCPcopy
hub / github.com/nfl/react-helmet / convertElementAttributestoReactProps

Function convertElementAttributestoReactProps

src/HelmetUtils.js:538–543  ·  view source on GitHub ↗
(attributes, initProps = {})

Source from the content-addressed store, hash-verified

536 }, "");
537
538const convertElementAttributestoReactProps = (attributes, initProps = {}) => {
539 return Object.keys(attributes).reduce((obj, key) => {
540 obj[REACT_TAG_MAP[key] || key] = attributes[key];
541 return obj;
542 }, initProps);
543};
544
545const convertReactPropstoHtmlAttributes = (props, initAttributes = {}) => {
546 return Object.keys(props).reduce((obj, key) => {

Callers 2

getMethodsForTagFunction · 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…