Use Effect With Empty Array Javascript W3schools Alert