The Chinese yuan slumped to an eight-year low against the U.S. dollar this week.

For president-elect Donald Trump, who has long accused China of weakening its currency to boost exports, this looks like a vindication of his views.

But...