Two‐Dimensional Covalent Organic Frameworks for Optoelectronics and Energy Storage