Looking closely at how China’s EV sector rose to global dominance offers the United States a chance to discern what to emulate, what to avoid, and how to compete.