COMPRESSEDfm cover image

47 | Brain Dump on React Hooks

COMPRESSEDfm

00:00

Servicide Rendering With Next J S

Ous effect could do some asink jobs. It is well, so if you make a fetch request, and before that thing actually returns back to you, you could also have an is loading piece of state using u state set that by de fault to false. Inside of a use effect, it's got the loading property as part of its dependency aray. Using that loading property, you can decide what you want to display. So instead of the blank page, you could render loading a spinner. Or some people do like a full screen overlay with the spinner. This is a great use case for use effect.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app