title: React component with Pagination and search issue
body: <p>Having issues with my search for some reason I have an error saying:</p>
  <p>Cannot read property 'length' of undefined, the below variable is the problem I guess.</p>
  <pre><code>const maxPages = Math.floor(movies.length / PAGE_SIZE);
  </code></pre>
  <p>Also looks like the search doesn't display the right number of movies.
  Any help much appreciated. <a href="https://codepen.io/davide77/pen/dyRvvWB?editors=0011" rel="nofollow noreferrer">Demo here</a></p>