Signal ledger / designed reading stage

Before you memo() 的原理

本文增加了对 https://overreacted.io/before you memo/ 的源码解释 原文总结 原始代码中 B 组件有重操作,在更新 A 组件时,导致了 B 的重新渲染,从而导致了页面卡顿。 在 before you memo 这篇文章中,作者提供了几个解决没有耦合的组件之间如何避免重复渲染的方法。 1. memo。使用 memo 包装组件,使组件进行浅比较,由于 A, B 组件之间无耦合关系,所以 B 的 Prop...

Transition band / reading fieldLong-form note2022-08-23
Continue through the ledger

Move to the next note without dropping back into a generic post footer.