Marshmallow Interview Question

How would you explain useEffect to a junior dev?