title: How To Set State Above Pages In Gatsby
body: <p>Considering that <a href="https://www.gatsbyjs.org/docs/" rel="nofollow noreferrer">Gatsby</a> creates pages automatically when component files are added to the folder, how do I create a higher-order-stateful-component above the pages so that I can control state for navigation &amp; other common universal components?</p>
  
  <p>Or are we to create the individual state within the page components even if it means repetition? </p>
  
  <p>Thanks</p>