react-dnd-html5-backend icon indicating copy to clipboard operation
react-dnd-html5-backend copied to clipboard

How to use this module after the change to the monorepo?

Open joetidee opened this issue 7 years ago • 2 comments

The message at the top of the Readme file says:

"React-Dnd has been restructured as a monorepo. This code has been merged into the the react-dnd main repository."

I refer to the React-dnd docs, where they still insist on importing the react-dnd-html5-backend package, even though this readme states it is deprecated. So what do we do?

Currently I am doing this:

import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
...
export default compose(
    DragDropContext(HTML5Backend),
    connect(mapStateToProps,mapDispatchToProps)
)(MyComponent);

joetidee avatar May 28 '17 11:05 joetidee

I too am lost in this. Basic information would be be nice. But I guess thats an issue over at the react-dnd github page.

didair avatar May 31 '17 14:05 didair

The reason react-dnd docs are not updated is because nothing has changes for end users. react-dnd and react-dnd-html5-backend are still separate packages.

Migrating to a monorepo changes the way maintainers work on the library.

amakhrov avatar Jun 22 '17 04:06 amakhrov