반응형
onClick = id => () => {
this.data = this.data.update('items', items =>
items.update(
items.indexOf(items.find(i=> i.get('id') === id)),
item => item.update('done',d=>!d)
)
)
};
반응형
'tech documents > memo' 카테고리의 다른 글
| [Gatsby] gatsby develop 오류 (0) | 2020.07.28 |
|---|---|
| [React] StaticRouter (0) | 2020.07.12 |
| [React] react-router-dom (0) | 2020.07.11 |
| [Javascript] Array.prototype.map (0) | 2020.07.10 |
댓글