Marshmallow interview question

How would you explain useEffect to a junior dev?