"Dividing Lines: The Politics of Immigration Control in America", by Daniel Tichenor (2002)
It shows how the immigration debates we're now having have been with us, in some form or another, for a very long time.
In the 1870s and 1880s, California nativists finally hit on a winning formula. They passed laws barring Chinese immigrants from voting, on account of their race. This let them pass Chinese exclusion without organized opposition.
The now-common cynical view is that America did this only in order to compete morally with the USSR. And in fact that competition was often invoked by people who wanted to liberalize immigration...
In the late 19th and 20th centuries, immigration arguments were about race.
Now, in the 21st century, it's about both. The two arguments have merged.
This argument from 100 years ago, that immigrant labor was unnecessary due to automation, sounds just like something out of @reihan's book:
Now, it's about race and electoral politics, much as debates over Irish and Italian immigration in centuries past.
Trump is not a new thing. He's just an ugly new manifestation of several old things.
Debates over immigration have ALWAYS been central to our society, our politics, and our self-conception as a people.
This war will never end, because this war is who we are.