docs: function onlyChild(children) {
    ("production" !== process.env.NODE_ENV ? invariant(
      ReactElement.isValidElement(children),
      'onlyChild must be passed a children with exactly one child.'
    ) : invariant(ReactElement.isValidElement(children)));
    return children;
  }