public/bundle.js
/**
 * Given an element, check if its props have been mutated since element
 * creation (or the last call to this function). In particular, check if any
 * new props have been added, which we can't directly catch by defining warning
 * properties on the props object.
 *
 * @param {ReactElement} element
 */
Given an element, check if its props have been mutated since element
creation (or the last call to this function). In particular, check if any
new props have been added, which we can't directly catch by defining warning
properties on the props object.


Given an element check if its props have been mutated since element creation ( or the last call to this function ) . In particular check if any new props have been added which we can ' t directly catch by defining warning properties on the props object .
function checkAndWarnForMutatedProps(element) {
  if (!element._store) {
    return;
  }
  var originalProps = element._store.originalProps;
  var props = element.props;
  for (var propName in props) {
    if (props.hasOwnProperty(propName)) {
      if (!originalProps.hasOwnProperty(propName) ||
          originalProps[propName] !== props[propName]) {
        warnForPropsMutation(propName, element);
        originalProps[propName] = props[propName];
      }
    }
  }
}
function checkAndWarnForMutatedProps ( element ) { if ( ! element . _store ) { return ; } var originalProps = element . _store . originalProps ; var props = element . props ; for ( var propName in props ) { if ( props . hasOwnProperty ( propName ) ) { if ( ! originalProps . hasOwnProperty ( propName ) || originalProps [ propName ] !== props [ propName ] ) { warnForPropsMutation ( propName , element ) ; originalProps [ propName ] = props [ propName ] ; } } } }
Given an element, check if its props have been mutated since element
 creation (or the last call to this function).
Given an element check if its props have been mutated since element creation ( or the last call to this function ) .
// Element was created using `new ReactElement` directly or with // `ReactElement.createElement`; skip mutation checking // Copy over the new value so that the two props objects match again