In reactjs, fetch the data perform map operation get error

preview_player
Показать описание
#shorts #reactjs
Follow us 💖 To Touch :
-----------------------------------------------------------------
#DynamicCodingwithAmit
Рекомендации по теме
Комментарии
Автор

And if you refresh...boom the error is back..😂

Cool_Monster
Автор

What is the point of declaring 'data' with a state hook if you never use its setter?

CZEminem
Автор

Totally incorrect. Inside useEffect, after fetch, call setData. Only then the data object is reliable and contains non empty result.

nagarajansubramani
Автор

it didn't work for me, but keep going bro

Emperor-dmts