react trigger effect when a value change without using the value inside code example
Example: react useeffect on change props
useEffect(() => console.log('value changed!'), [props.isOpen]);
useEffect(() => console.log('value changed!'), [props.isOpen]);