📜  DragDropContext - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:37.486000             🧑  作者: Mango

代码示例1
import React, { Component } from "react";
// import ReactDOM from "react-dom";
import HTML5Backend from "react-dnd-html5-backend";
import { DragDropContext as dragDropContext } from "react-dnd";
import DragBox from "./DragBox";
import DropBox from "./DropBox";

class MainContext extends Component {
  render() {
    return (
      

Main Context

); } } module.exports = dragDropContext(HTML5Backend)(MainContext);