Republicans, Immigration and the Lessons of History

Is anti-immigrant resentment meant to deflect attention from economic stagnation?