Use Effect With Empty Array Javascript Append To List