China’s electricity shortages have hit factories that produce a lot of the goods we use every day, including Apple gadgets and furniture. The country’s coal problems expose the growing pains in transitioning to a greener future and risks to the global supply chain.