l
Size: a a a
l
DZ
DZ
l
VK
DZ
DZ
АЗ
З
AW
З
AW
AW
useEffector
статичноVK
VK
at
at
at
function useStore(store) {
const [value, update] = useState(store.defaultValue)
useEffect(() => store.watch(update), [store])
return value
}
function useModule(Module) {
return useRef(Module()).current
}