react-dnd / react-dnd-html5-backend

HTML5 backend for React DnD [Legacy Repo]
MIT License
145 stars 97 forks source link

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

Open joetidee opened 7 years ago

joetidee commented 7 years ago

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);
didair commented 7 years ago

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.

amakhrov commented 7 years ago

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.