China’s exports picked up pace in May, rising 19.4% from a year earlier, its customs agency said Tuesday, as technology-related shipments remained robust despite impacts from the Iran war.

The stronger than expected performance was an improvement from April’s 14.1% year-on-year increase.

Imports in May jumped 27.4%, also at a faster pace compared with April’s 25.3% year-on-year expansion.

Exports to the U.S. in May surged more than 35% from the year before — the strongest pace since early 2021 — after an 11% increase in April.

China’s shipments to the U.S. had fallen sharply for most of the months since U.S. President Donald Trump returned to the White House last year, as shipments to regions like Southeast Asia and Europe surged.