You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 18, 2018. It is now read-only.
"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);
The text was updated successfully, but these errors were encountered:
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 freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
The text was updated successfully, but these errors were encountered: