13
Ich lese an example of the React-dnd project:
moveCard(dragIndex, hoverIndex) {
const { cards } = this.state;
const dragCard = cards[dragIndex];
this.setState(update(this.state, {
cards: {
$splice: [
[dragIndex, 1],
[hoverIndex, 0, dragCard]
]
}
}));}
Ist das $ Spleiß die gleiche on this page erklärt?
Könnte jemand erklären, was macht dieser Code-Block? Die $splice
Funktion ist sehr verwirrend für mich.