skip to Main Content

ReactJS: map & filter

Existing code: {categorizedDatas2[key]?.items.map((item, index) => { if (item.packingLocation == 'A') { return ( <> <Table> <TableRow> <TableCell>{item.packingLocation}</TableCell> </TableRow> <TableRow> <TableCell>{item.Name}</TableCell> </TableRow> </Table> </> ) } if (item.packingLocation == 'B') { return ( <> <Table> <TableRow> <TableCell>{item.packingLocation}</TableCell> </TableRow> <TableRow> <TableCell>{item.Name}</TableCell> </TableRow>…

VIEW QUESTION

Laravel 11 Reverb and React Websocket connection error

I am trying to build a real-time chat application, but I am encountering issues connecting to my Reverb server from React. The error message I receive is as follows: runtime.ts:115 WebSocket connection to 'wss://localhost:8080/app/knycnmdeg1hemq2vnt1i?protocol=7&client=js&version=8.4.0-rc2&flash=false' failed: . Could you help me…

VIEW QUESTION
Back To Top
Search