title: Caching in React
body: <p>In my react App I have a input element. <strong>The search query should be memoized</strong>, which means that <strong>if the user has previously searched for 'John'</strong> and the API has provided me valid results for that query, then <strong>next time when the user types 'Joh'</strong>, there should be <strong>suggestion</strong> for the user with the previously memoized values(in this case 'John' would be suggested).</p>
  
  <p>I am new to react and am trying caching for the first time.I read a few articles but couldn't implement the desired functionality.</p>