Dahua wifi cameras changing routers

I have a few Dahua wifi cameras (2 doorbells and 1 bullet). I am moving and will be switching internet routers and wi-fi. Im reinstalling them at the new place and I'm assuming the cameras will go offline when I move? Is it easier to just factory reset them and reconnect them to the new network or is there a easy transition?