useLayoutEffectCompare
Custom useLayoutEffect that reexecutes EffectCallback only when comparator function, received as third parameter, returns true.
Demo
INFO
The implementation is like that useEffectCompare.
Please visit useEffectCompare example to see how it works.
