Just following the documentation, i am faced with this error: createBackend is not a function
See this codesandbox: https://codesandbox.io/s/10rjqx9wq7
Thanks
The import HTML5Backend
doesn't exist in react-dnd-html5-backend
.
You should be doing the following instead:
import HTML5Backend from 'react-dnd-html5-backend';
@gustavohenke Thank you so much.
import {HTML5Backend } from 'react-dnd-html5-backend';
Most helpful comment
The import
HTML5Backend
doesn't exist inreact-dnd-html5-backend
.You should be doing the following instead: