MZ
Size: a a a
MZ
S
function Button() {
let appContextValue = useContext(AppContext);
let theme = appContextValue.theme; // Your "selector"
return useMemo(() => {
// The rest of your rendering logic
return <ExpensiveTree className={theme} />;
}, [theme])
}Вместо shouldComponentUpdate я могу возвращать useMemo и поставить руками зависимости, это будет же лучше чем я оберну в memo?НИ
I
VG
НИ
I
VAR=value program.exe, надо исправлять скрипты запускаDS
НИ

I
DS

SB
🗻
МГ
МИ

МИ

МИ
DS
DK
