Chinese state media have taken a swipe at US Secretary of State Hillary Clinton, saying she is either ignorant of the facts about Chinese investment in Africa or is ignoring them during a visit to the continent.

Clinton has questioned China’s motives during the trip.

China has poured billions of dollars into Africa, emerging as the continent’s main trading partner and a major source of investment for infrastructure. But its presence has also sparked concerns about labour abuses and corruption.

On Wednesday, in a veiled criticism of China’s role in Africa, Clinton told a university audience in Senegal that African leaders should embrace democracy and partner with responsible foreign powers as a means to improving their living standards and addressing the root causes of extremism on the continent.

Though she did not mention China by name, it’s clear that Africans are being asked to ponder their relationship with China.

“Whether Clinton was ignorant of the facts on the ground or chose to disregard them, her implication that China has been extracting Africa’s wealth for itself is utterly wide of the truth,” Xinhua said in commentary on Friday.

Africa has become a major source of resources for China’s economy and their trade hit a record $US166 billion last year, a threefold increase since 2006.

Xinhua said ties with Africa were rooted in “friendship and equality” and that the “friendly and mutually beneficial interaction between China and Africa gives the lie to Clinton’s insinuation.”

It said Clinton’s “cheap shots” had a hidden agenda to discredit China’s engagement with Africa and “drive a wedge between China and Africa for the U.S’s. selfish gain.”

Clinton’s 11-day African tour includes Uganda, South Sudan, Kenya, Malawi, South Africa and Ghana.

China hosted a summit with African leaders last month and pledged $US20 billion in credit to be used for infrastructure and other development.

President Hu Jintao said China would continue to support African nations’ independent development paths, in a speech that disregarded calls for China to consider human rights and other potential abuses when it made investments.