I'm using ReactJS to write a basic HTML5 Canvas component that allows users to drag objects. I'm setting an inline style with {left, top} for each object to absolute position it within the parent container. The problem is when I drag the object, the move event is firing so quickly that setting the style on every object takes too long and there is a significant lag.
I ran the Chrome profiler and setting the Style is taking so much more time than every other operation in my program. I'm wondering if there is a better way to absolute position elements in terms of performance.