title: How to let react electron ignore undefined error?
body: <p><a href="https://i.stack.imgur.com/wkW9w.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wkW9w.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/44hhj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/44hhj.png" alt="enter image description here"></a></p>
  
  <p>React electron on windows, if <code>A</code> is null, call <code>A.test</code> will make the application stop working, then the user has to close the application and restart it.
  How to let <code>react</code> ignore the error, and continue work. The code has many <code>A.test</code>, I can't write everywhere <code>if(A) A.test</code>.
  If this can't be resolved, can I print the error on the web view? So I don't have to remote visit the user's computer to see the console error.</p>