title: Best way to handle undefined values in ReactJS?
body: <p>I'm accessing an API with ReactJS. What is the best way to stop React Component crashing when it's accessing a property in the object provided by the API that may be 'undefined'?</p>
  
  <p>An example of an error is:</p>
  
  <blockquote>
    <p>TypeError: Cannot read property 'items' of undefined</p>
  </blockquote>