Skip to content
This repository has been archived by the owner on Jun 18, 2018. It is now read-only.

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

Open
joetidee opened this issue May 28, 2017 · 2 comments
Open

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

joetidee opened this issue May 28, 2017 · 2 comments

Comments

@joetidee
Copy link

joetidee commented May 28, 2017

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
Copy link

didair commented May 31, 2017

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
Copy link

amakhrov commented Jun 22, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants