Uncaught TypeError: Cannot read properties of null (reading '0') when fetch the API link in react.js ?