This is the release candidate for 1.0.
It fixes the UMD build, now including HTML5 backend as ReactDnD.HTML5
.
It also has one major change from the latest beta: ref
usage is now an implementation detail.
Instead of writing
render() {
const { connectDragSource } = this.props;
return (
<div ref={connectDragSource}>...</div>
);
}
you can now write
render() {
const { connectDragSource } = this.props;
return connectDragSource(
<div>...</div>;
);
}
Internally it will still work by attaching a ref
to the element, but this approach is more flexible and opens the door for supporting React Native in the future. It also reads more easy and has less WTF potential.
The lower-level ref={connectDragSource}
API still works, but might get deprecated somewhere during 1.x.