🔒 Closed Tanong - -regarding REACT JS

Status
Not open for further replies.

Ze_Ro

Forum Guru
Good day po .. .

tanong ko lang po sana kung bakit nya po nilagyan ng zero after ng data [0] sa code na po na ito?

salamat po

fetch("/users/" + userid)
.then((response) => response.json())
.then((responsejson) => {
console.log(responsejson.data)
setIemail(responseJson.data[0].USRX_EMAIL);
setIempno(responseJson.data[0].USRX_EMPNO);
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 2
    Replies
  • 620
    Views
  • 2
    Participants
Last reply from:
Ze_Ro

Online now

Members online
628
Guests online
918
Total visitors
1,546

Forum statistics

Threads
2,277,904
Posts
28,979,570
Members
1,229,144
Latest member
Karisma18
Back
Top