Chlorine react vigorously with hydrogen in the present of sunlight because chlorine has a great attraction for hydrogen's electron. During the reaction, chlorine and hydrogen will donate one electron each from their valence electrons which will be shared equally by both elements, thus forming a covalent bond.