title: react js : TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))
body: <pre><code>this.state.hiring.map(h =&gt; (
    &lt;FormApp
      condType={h.type}
      condRef={h.ref}
      label={h.name}
      labelName={h.name}
      name={h.id}
      id={h.name}
      validations={h.required == true ? [this.required] : null}
      dataList={this.state[h.ref]}
      onChange={this.onChangeInput}
    /&gt;
  ));
  </code></pre>
  
  <p>I want to 
  <code>if (h.requered == true) { return [this.required] } else { null }</code></p>
  
  <p>I have problem</p>
  
  <p>react js : <strong>TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))</strong> </p>