azuqua / react-dnd-scrollzone

A smooth scrolling container for draggable items
https://npmjs.com/react-dnd-scrollzone
MIT License
148 stars 126 forks source link

use higher order component pattern for better composition #8

Closed jas-per closed 7 years ago

jas-per commented 7 years ago

implements #7 and modifies examples page

nickclaw commented 7 years ago

This looks good. I'll test it out and likely merge it in

jas-per commented 7 years ago

cool, thanks! its a bit disruptive but imho worth the transition because it enables better compatibility +you can easily adapt HOCs for use as a decorator (the ES7 decorator-spec is stage-2 now / about to get finished soonish, see https://github.com/babel/babel/issues/2645)