30
The starch forms a loosely bonded network that traps water vapor and air into a foamy mass, which expands rapidly as it heats up.
Starch is made of glucose polymers (amylopectin is one of them, shown here):
Some of the chains are branched, some are linear, but they all have $\ce{-OH}$ groups ...