React Destructuring z REMAME
// To destructure //
const { nextId, taskName, doBefore } = this.state;
console.log(nextId, taskName, doBefore)
// To destructure and rename //
const { nextId: id, taskName: name, doBefore } = this.state;
console.log(id, name, doBefore)
// ("nextId" and "taskName" were renamed to "id" and "name")
Disgusted Dunlin