(attributes, initProps = {})
| 536 | }, ""); |
| 537 | |
| 538 | const 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 | |
| 545 | const convertReactPropstoHtmlAttributes = (props, initAttributes = {}) => { |
| 546 | return Object.keys(props).reduce((obj, key) => { |
no outgoing calls
no test coverage detected
searching dependent graphs…