Use Effect With Empty Array Javascript Function How To Use