avoid setting 'style' prop for dom, it throws exception in safari