title: TypeError: Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node' in React
body: <p>Inside of my render method I am calling a method which performs some conditional logic, based on API response data. I'm unclear how to resolve this error, considering I am not removing anything from the DOM. Here is my method </p>
  
  <pre><code>import numeral from 'numeral';
  import moment from 'moment';
  
  class SearchResultsListItem extends React.Component {
    constructor(props) {
      this.isMaxQtyGreaterThanOneThousand=
      ::this.isMaxQtyGreaterThanOneThousand;
    }
  
   isMaxQtyGreaterThanOneThousand(qty){
     if(!!qty){
       if(qty%1000 === 0){
         return (numeral(qty).divide(1000).format('0,000') + 'M');
       }else{
         return numeral(qty);
       }
     }else{ return "-";}
   }
  
  
  render() {
    const x = this.props.dataItem;
  
    return (
      &lt;div className={`${s['quantity-block']}`}&gt;
        {this.isMaxQtyGreaterThanOneThousand(x.MaxQuantity)}
      &lt;/div&gt;
    )
  }
  </code></pre>
  
  <p>I've looked at the following posted in order to resolve this error, but haven't had much luck finding anything specific to jsx or React:</p>
  
  <p><a href="https://stackoverflow.com/questions/43317676/javascript-error-uncaught-typeerror-failed-to-execute-removechild-on-node">Javascript error: Uncaught TypeError: Failed to execute &#39;removeChild&#39; on &#39;Node&#39;: parameter 1 is not of type &#39;Node&#39;</a></p>
  
  <p><a href="https://stackoverflow.com/questions/37495059/failed-to-execute-removechild-on-node-parameter-1-is-not-of-type-node">Failed to execute &#39;removeChild&#39; on &#39;Node&#39;: parameter 1 is not of type &#39;Node&#39;</a></p>