React Context is a great API to avoid prop-drilling or if you need a simple way to have access to some global app data in any component, but don’t want to use often recommended solutions like Redux or Mobx, because they, being good scalable libraries, advocate for proper architecture and to separate all files properly, and that is a big daunting task for something small.