I tried to use react dnd in my react web application. I create a js file call withDnDContext.js
. When I compile it, I received an error 'react-dnd' does not contain an export named 'DragDropContext'
. My react-dnd version is latest one 9.3.2
This is my withDnDContext.js
import { DragDropContext } from 'react-dnd'
import HTML5Backend from 'react-dnd-html5-backend'
export default DragDropContext(HTML5Backend);
Anyone know how to solve this?