Moreover, the stereochemistry of the product of an electrocyclic reaction depends on whether
the reaction is carried out under thermal or photochemical reaction conditions—that is, with heat
or light, respectively. Cyclization of (2E,4E)-2,4-hexadiene with heat forms a cyclobutene with
trans methyl groups, whereas cyclization with light forms a cyclobutene with cis methyl groups