Climate change threatens agricultural production across sub‐Saharan Africa, where most farmers rely on rainfall.