. . . . "A thiol methacrylate or acrylate compound represented by the formula (1) or (2), ##STR1## wherein R1 is H or CH3 and X is selected from: ##STR2## wherein R1 is H or CH3 and m is an integer of 1 to 4." .