Vietnam’s hopes of becoming a production hub to rival China are showing momentum.

A big boost will come as the nation leans into its untapped reserves of rare earths, even as it struggles to find traction in new sectors such as electric vehicles.

Over the past decade, the country has built a beachhead in manufacturing, ranging from cars to electronics. Computers and accessories are now the largest export, surpassing textiles and footwear. The expansion of foreign assemblers like Foxconn Technology Group, GoerTek and Luxshare Precision Industry mean that Apple products like Macs and AirPods are made locally.