title: React TypeError: Cannot read property 'searchField' of undefined
body: <pre><code>TypeError: Cannot read property 'searchField' of undefined
  Function.mapStateToProps [as mapToProps]
  C:/Users/windw/Desktop/robofriends/src/containers/App.js:11
     8 | 
     9 | const mapStateToProps = state =&gt; {
    10 |     return {
  &gt; 11 |         searchField: state.searchRobots.searchField
    12 |     }
    13 | }
    14 | 
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/Mta3r.png" alt="Code Part"></p>