📌  相关文章
📜  如何修复“在 DragSource(Component) 的上下文中找不到拖放管理器”-无论代码示例

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