DEV Community

Discussion on: useReducer instead of useState while calling APIs!

Collapse
 
lizardkinglk profile image
sndp

Great post. Simple and Nice. Btw, I always check if async await call returned data and ready to render because sometimes it says UserDetails.map is not a function. This way very helpful.

Some comments have been hidden by the post's author - find out more