It doesn’t have a `@flow` annotation. We should start Flow-ifying it to avoid bugs like https://github.com/facebook/react/pull/11173.

@iamdustan Wanna take it?
var getStackAddendum = emptyFunction.thatReturns('');
if (__DEV__) {
  var warning = require('fbjs/lib/warning');
  var checkPropTypes = require('prop-types/checkPropTypes');
  var warnValidStyle = require('../shared/warnValidStyle');
  var {
    validateProperties: validateARIAProperties,
  } = require('../shared/ReactDOMInvalidARIAHook');
  var {
    validateProperties: validateInputProperties,
  } = require('../shared/ReactDOMNullInputValuePropHook');
  var {
    validateProperties: validateUnknownProperties,
  } = require('../shared/ReactDOMUnknownPropertyHook');
  var validatePropertiesInDevelopment = function(type, props) {
    validateARIAProperties(type, props);
    validateInputProperties(type, props);
    validateUnknownProperties(type, props);
  };
  var describeComponentFrame = require('shared/describeComponentFrame');
  var describeStackFrame = function(element): string {
    var source = element._source;
    var type = element.type;
    var name = getComponentName(type);
    var ownerName = null;
    return describeComponentFrame(name, source, ownerName);
  };
  var {ReactDebugCurrentFrame} = require('shared/ReactGlobalSharedState');
  var currentDebugStack = null;
  var currentDebugElementStack = null;