RxJS - Drag and Drop
A basic drag and drop feature only cares about three types of events: mouseup, mousemove, and mousedown. It can get more complicated from there if we're thinking about target locations and moving around other DOM items, but at it's very core, we only care about these three events. RxJS allows us to abstract each of these steps, so we can focus on each, yet keep our code concise and readable.
8 years ago