2024.1.10

发布时间 2024-01-10 18:43:59作者: 被咯苏州
  1. 9 点 40 到公司
  2. 学习 https://github.com/febobo/web-interview 。学习到了React diff的原理是什么。
  3. 学习了两篇文章《好文:介绍 React 的 cache 函数。》https://unicorn-utterances.com/posts/explaining-reacts-cache-function,《好文:React.use 和 React.useMemo 的未来 - 一个强大的上下文选择器替代方案。》https://interbolt.org/blog/react-use-selector-optimization/ 这个没看懂。了解了 react use hooks https://react.dev/reference/react/use。
  4. 看了 react.dev https://react.dev/reference/react/useContext
  5. 学习了在 docker 里面可以缓存上一次的 package.json 然后通过 md5 来记录,如果两次 md5 相同,那么直接下载上一次构建缓存的 node_modules。流程图:
  6. 开始养成每天写日记的习惯