My website is showing messy components until DomContentLoaded.
I would like to show a loading-spinner or hide the content until page is loaded.
I'm using React SSR with UmiJS3.
Asked
Active
Viewed 103 times
1

kambi
- 3,291
- 10
- 37
- 58
1 Answers
0
I would suggest you to use Suspense API from React but it doesn't support ssr right now but they recommend Loadable components which referenced in here

Serdar Sayın
- 389
- 4
- 11