title: React Context Api vs Local Storage
body: <p>I have some general questions which are bothering me regarding the context API and local storage.</p>
  
  <p>When to use local storage?, when to use the Context API and when would I use both?</p>
  
  <p>I know that to persist data after the refresh I need something like local storage or session storage, so do I ditch the context API entirely and just store everything in the local storage? this way I can not only store data but also keep it on refresh? some insight would be really helpful.</p>
  
  <p>What are some pros and cons?</p>