@react-render-performance
在使用外部状态时最大限度地减少不必要的 React 重新渲染的模式。优先选择基于选择器的订阅而不是 useState(wholeObject) — 仅订阅每个组件需要的切片。