yarn react-dnd 1.0.0-rc
v1.0.0-rc

latest releases: 16.0.1, 16.0.0, 15.1.2...
9 years ago

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.

Don't miss a new react-dnd release

NewReleases is sending notifications on new releases.