useEffect
Accepts a function that contains imperative, possibly effectful code. The effects run after browser paint, without blocking it.
function useEffect(effect: EffectCallback, inputs?: Inputs): void;
Accepts a function that contains imperative, possibly effectful code. The effects run after browser paint, without blocking it.