DEV Community

Discussion on: How to stop your spinner from jumping in React

Collapse
 
priitpu profile image
Priit • Edited

This is a solid solution, albeit feels a bit over engineered. Don't think the user needs to know every detail that's happening in the background, so using generic strings with set delays in the component would be my preferred way to go.

Collapse
 
selbekk profile image
selbekk

Hi Priit!

Thanks for your comments. The details I show is just for show, and to emphasise when each loader is switched out for another one. I'm not sure how you'd do this with set delays, as you don't know when each loader will unmount / re-mount. I'd love to see an example if there's a more elegant way to do it! 🤗