Do not set properties multiple times. This was problematic for style and className attributes