useUpdateEffect()
+
-
Alert does not show in the first render
and only show when you update the number.