skilled developers are much more common than people think. We get the impression of rarity precisely because we limit the search pool to local areas where very often many top companies are competing for the same talent pool.
But at the end of the day there are a ton of super smart developers in EU, China, India, Japan, South America or even lower to mid COL areas in the U.S. who are more than happy to take 50% of Silicon Valley pay and just do as well of a job.
At the very end of the day vast majority of software engineering is far from rocket science, and you don't need someone who can re-invent MapReduce out of thin air just to refactor that clusterfuck of Redux code.