There is a reasonable question about whether economic anxiety led to racial resentment or vice versa. But as University of California Irvine political scientist Michael Tesler explained in the Washington Post, the evidence suggests that racial resentment came first:

For the full story, please visit https://www.vox.com/policy-and-politics/2017/5/9/15592634/trump-clinton-racism-economy-prri-survey.