在React中,使用`useRef` 声明式地添加项目还是使用`state`更具性能优势?
英文: In React what is more performant: adding items imperatively using useRef, or using state? 问题 {#heading} ============= Imagine a chat app with infinite scroll. New messages are added...
英文: In React what is more performant: adding items imperatively using useRef, or using state? 问题 {#heading} ============= Imagine a chat app with infinite scroll. New messages are added...