BEIJING - China's economy grew 0.4 percent from a year earlier during the April-June period, but the pace of expansion slowed against the backdrop of a prolonged lockdown in Shanghai, official data showed Friday.