react-dnd使用说明及列表位置切换案例
案例
dnd.tsx
import React, { useState, useRef } from 'react'
import "./dnd.less"
// react-dnd核心
import { DndProvider } from "react-dnd"
import { HTML5Backend } from "react-dnd-html5-backend"
import Item from "./components/item"
const dnd: React.FC = (props: any) => {
const types = {
item: 'item',
}
const [list, setlist] = useState([1, 2, 3, 4])
return (
{/* 只有 的子孙元素才能使用 react-d
相关内容
- Email Security to Make Sure Receved Emails Are From Valid Sources
- A New Method to Get Free Office365 with E3 Subscription! Hurry to Get it before it’s gone!
- Use Cloudflare Snippets to Build Your Free Forever VPN (V2Ray, Vless,)
- Monitoring Applications and Services on Linux with Zabbix Agent
- Monitoring Applications and Services on Windows with Zabbix Agent
- 精选裸聊自慰合集

共有 0 条评论