In the 20th century grid, electrical power was largely generated by burning fossil fuel. When less power was required, less fuel was burned. Concerns with air pollution, energy imports, and global warming have spawned the growth of renewable energy such as solar and wind power. Wind power is uncontrolled and may be generating at a time when no additional power is needed. Solar power varies with cloud cover and at best is only available during daylight hours, while demand often peaks after sunset (see duck curve). Interest in storing power from these intermittent sources grows as the renewable energy industry begins to generate a larger fraction of overall energy consumption.
Off grid electrical use was a niche market in the 20th century, but in the 21st century, it has expanded. Portable devices are in use all over the world. Solar panels are now common in the rural settings worldwide. Access to electricity is now a question of economics and financial viability, and not solely on technical aspects. However, powering transportation without burning fuel remains in development.
The solution to storage was found in late 18th and early 19th century- Batteries! You already have learnt about the history of batteries in Introduction module.
The usage of "battery" to describe a group of electrical devices dates to Benjamin Franklin, who in 1748 described multiple Leyden jars by analogy to a battery of cannon (Benjamin Franklin borrowed the term "battery" from the military, which refers to weapons functioning together.
Italian physicist Alessandro Volta built and described the first electrochemical battery, the voltaic pile, in 1800. This was a stack of copper and zinc plates, separated by brine-soaked paper disks, that could produce a steady current for a considerable length of time.