code: function getLabel(children) {
    let str = '';
  
    if (Array.isArray(children)) {
      children.forEach(c => {
        if (Array.isArray(c)) {
          getLabel(c);
        } else if (c.props) {
          str = c.props.children;
        } else {
          str = c;
        }
      });
    } else if (children.props) {
      getLabel(children.props.children);
    } else {
      str = children;
    }
  
    return str;
  }
docs: ============================== Renderers ==============================