An Electrocatalytic Strategy for Dehydrogenative [4+2] Cycloaddition over a Cobalt‐based catalyst