Home > Software engineering >  Unexpected token, expected "," (88:1) (Reactjs)
Unexpected token, expected "," (88:1) (Reactjs)

Time:12-01

I can't seem to find where i forget to put the (,) .... is says line 88

I could not fit the hole thing on the code ctrl k option

 86 |     </Container>
  87 |     );
> 88 | };

This is the hole code

CodePudding user response:

Review your useEffect function. You forget to close your useEffect with curly bracket and round bracket

here the code

useEffect(() => {
    const getUsers = async () => {
       const taskFromServer = await fetchUsers()
       settasks(tasksFromServer);
    }
})
  • Related