Batteries are playing a critical role in the clean energy transition because they supply electricity during times of low sunlight and wind, and can also prevent blackouts when demand for electricity surges, such as heat waves.