How to use the react-dnd-html5-backend.default function in react-dnd-html5-backend

To help you get started, we’ve selected a few react-dnd-html5-backend examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MonsantoCo / velocity-dashboard / public / scripts / dashboard / Dashboard.jsx View on Github external
const React = require("react")
const ReactDOM = require("react-dom")

const Title = require("./Title")
const Layout = require("./Layout")
const _ = require("lodash")
const { CSSTransitionGroup } = require("react-transition-group")
const AddWidgetPanel = require("./AddWidgetPanel")
const { DragDropContext } = require("react-dnd")
const HTML5Backend = require("react-dnd-html5-backend").default
const windowSize = require("react-window-size").default

const defaults = {
    widgetWidth: 250,
    widgetHeight: 250,
    margin: 15
}

class Dashboard extends React.Component {
    constructor(props) {
        super(props)
        this.state = {
            editMode: false,
            moveMode: false
        }
    }