Correlation causation.
The shift from "conservative" dems to rabid right wing republicans didn't *cause* the rise of Trump.
Both of those things are symptoms of the rise of the alt-right, an explicitly white nationalist political movement. Trump was just "the alt-right candidate." He didn't create the movement. He was just the last puzzle piece.