📌  相关文章
📜  在 ResourceEvents 的上下文中找不到拖放管理器.确保使用 DragDropContext 包装应用程序的顶级组件 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:40.253000             🧑  作者: 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);