When Donald Trump won the U.S. presidential election in November, he had a lot of Chinese fans. But Trump's popularity has since plummeted, owing to his statements — often via Twitter — on contentious issues, such as Taiwan and the South China Sea. This isn't the first time China's view of a U.S. leader has deteriorated rapidly.

The abrupt change in Chinese sentiment toward Trump is reminiscent of what happened to President Woodrow Wilson after his re-election a century ago. At the time, many Chinese intellectuals, including the young Mao Zedong, admired Wilson, a political scientist and former president of Princeton University. Then, in 1919, Wilson backed the Treaty of Versailles, which transferred control of former German territories in Shandong Province to Japan, rather than return them to China. Wilson quickly lost his luster in China.

The shift was similar — but the reasons are very different. A century ago, China was driven to support Wilson, and then to loathe him, by its own weakness. Today, it is China's strength that is guiding its view of the U.S. president.