Lithium-ion batteries are essential to electric vehicles, but they have drawbacks: They are hard to make and degrade over time.