old_contents: /**
   * React-related utilities
   */
  
  import React from 'react';
  
  /**
   * Like React.Children.forEach(), but traverses through all descendant children.
   *
   * @param children Children of a React element, i.e. `elem.props.children`
   * @param callback {function} A function to be run for each child; parameters passed: (child, indexOfChildInImmediateParent)
   */
  export function reactChildrenForEachDeep(children, callback) {
    React.Children.forEach(children, (child, i) => {
      callback(child, i);
      if (child.props.children) {
        reactChildrenForEachDeep(child.props.children, callback);
      }
    });
  }
  
new_contents: /**
   * React-related utilities
   */
  
  import React from 'react';
  
  /**
   * Like React.Children.forEach(), but traverses through all descendant children.
   *
   * @param children Children of a React element, i.e. `elem.props.children`
   * @param callback {forEachCallback} A function to be run for each child
   */
  export function reactChildrenForEachDeep(children, callback) {
    React.Children.forEach(children, (child, i) => {
      callback(child, i);
      if (child.props.children) {
        reactChildrenForEachDeep(child.props.children, callback);
      }
    });
  }
  
  /**
   * This callback is displayed as part of the Requester class.
   *
   * @callback forEachCallback
   * @param {*} child The React child
   * @param {number} index The index of the child in its immediate parent
   * @param {number} depth The number of parents traversed to react this child (top-level children have depth === 1)
   */
  
subject: Add inline documentation for reactChildrenForEachDeep