Closed dvingo closed 2 years ago
Pass the state that use-sub accesses via the context api - probably add a new namespace (.react-hook-context?) with the hooks to do this (called a provider in redux). Otherwise you have to pass the global state atom via props down the tree.
.react-hook-context?
Pass the state that use-sub accesses via the context api - probably add a new namespace (
.react-hook-context?
) with the hooks to do this (called a provider in redux). Otherwise you have to pass the global state atom via props down the tree.