2018年8月1日

React setState best practice

摘要: When the new state reply on current state, please do not simply use it like this: Because setState is executed asynchronously, there may exist conflct 阅读全文

posted @ 2018-08-01 21:13 OpenZigCoder 阅读(85) 评论(0) 推荐(0)

2018年7月29日

React Component Lifecycle

摘要: Creation: Update: 1. Trigger by parent: 2. Trigger by internal change (e.g. state change): PureComponent overwrites shouldComponentUpdate, it checks s 阅读全文

posted @ 2018-07-29 10:51 OpenZigCoder 阅读(120) 评论(0) 推荐(0)

2018年7月19日

Next Generation Javascript

摘要: 1. and == checks both type and value while == only checks value 2. Spread and Rest Spread: Rest: 3. const and let const variable can be set only one a 阅读全文

posted @ 2018-07-19 13:07 OpenZigCoder 阅读(94) 评论(0) 推荐(0)

导航