ARTS-WEEK9(23.10.9-23.10.15)
Algorithm 一道算法题
记忆函数,detailhttps://leetcode.cn/problems/memoize-ii/submissions/
复制代码
Review 读一篇英文文章
Beauty Is in Simplicity
Technique/Tips 分享一个小技术
What's the difference between useState and useReducer
api 不一样,useState 适用于简单的单个组建的场景,useReducer 使用更为复杂的状态。
复制代码
useState 值没有变化的时候,组建不会重新更新,但是 useReducer 会。详见https://codesandbox.io/s/reverent-davinci-yxvkt2?file=/src/App.js
复制代码
Share 分享一个观点
If you can SAY it, you can HEAR it. --- Coach Shane
评论