Skip to content
This repository was 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

@joetidee

Description

@joetidee

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions