useeffect on state object value change code example Example: react useeffect on change props useEffect(() => console.log('value changed!'), [props.isOpen]);