Move top/left/width/height code outside of react for better perf