3D Ni and Co redox-active metal-organic frameworks based on ferrocenyl diphosphinate and 4,4'-bipyridine ligands as efficient electrocatalysts for the hydrogen evolution reaction.