| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 14x 7x 5x 2x 7x | /*
* Not exported as public functions of this library.
*/
import React from 'react';
export function _buildElement(compOrElem, props, children) {
if (compOrElem) {
if (React.isValidElement(compOrElem)) {
return compOrElem;
} else {
return React.createElement(compOrElem, props, children);
}
} else {
return null;
}
}
|