score:0

`export const renderElements = ({
   value = 0,
   element = <b>hi</b>
}) => <!--- Code----!>`

score:2

export function renderElements(props) {
   let { value, element } = props;
   element.props.children = value; // affects all renderElements instances at once

   return element;
}

renderElements.defaultProps = {
   value: 0,
   element: <b>hi</b>
}

Related Query

More Query from same tag