What about:

  if (Array.isArray(props.children)) {
    content = props.children.join('');
  } // ...