React-dnd: createBackend is not a function

Created on 27 Feb 2019  ·  3Comments  ·  Source: react-dnd/react-dnd

Just following the documentation, i am faced with this error: createBackend is not a function

See this codesandbox: https://codesandbox.io/s/10rjqx9wq7

Thanks

Most helpful comment

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

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings