Why doesn't react update the style in the setState