How Does Useeffect Replace The Old Lifecycle Methods In React By

How Does Useeffect Replace The Old Lifecycle Methods In React By