docs: function flattenTopLevelChildren(children) {
      if (!isValidElement(children)) {
          return toArray(children);
      }
      const element = children;
      if (element.type !== REACT_FRAGMENT_TYPE) {
          return [element];
      }
      const fragmentChildren = element.props.children;
      if (!isValidElement(fragmentChildren)) {
          return toArray(fragmentChildren);
      }
      return [fragmentChildren];
  }