MCPcopy Create free account
hub / github.com/react-dnd/react-dnd / render

Method render

examples/01 Dustbin/Copy or Move/index.js:5–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4export default class DustbinCopyOrMove extends Component {
5 render() {
6 return (
7 <div>
8 <p>
9 <b><a href="https://github.com/react-dnd/react-dnd/tree/master/examples/01%20Dustbin/Copy%20or%20Move">Browse the Source</a></b>
10 </p>
11 <p>
12 This example demonstrates drop targets that can accept copy and move drop effects, which users can switch between by holding down or releasing the alt key as they drag.
13 </p>
14 <p>
15 In a todo list app, for example, the default drag and drop operation could be used to sort the list, while holding down the alt key while dragging and dropping could copy the todo item to the drop target instead of moving it.
16 </p>
17 <Container />
18 </div>
19 );
20 }
21}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected