@ivbrajkovic/deep-state
v1.0.2
Published
Deep state
Downloads
4
Maintainers
Readme
:zap: Deep state and deep effect hooks
useDeepState
Deep state hook is an enhanced version of standard useState hook. It provide functionality that standard useState hook is missing, like object merging, deep equality check and deep property equality check.
Hook usage is similar to well known useState hook with additional options.
useDeepEffect
Deep effect hook is an enhanced version of standard useEffect hook. It provide functionality that standard useState hook is missing, like deep dependencies check and custom equality check function.
Hook usage is similar to well known useEffect hook with additional options.
🚀 Demo - Codesandbox example
Basic usage
Some component
// Component.js
const Component = () => {
}
export default Component
};
Some component
// Component.js
const Component = () => {
}
export default Component
API
useDeepState
-
useDeepEffect
-