Hey as im new to reactjs can someone tell me how can this be achieved? I want to show a loading screen with circular progress while the site loads and when the site loads the site should be revealed and loading screen should fade out
Asked
Active
Viewed 429 times
0
-
Render a circular progress if the data your fetching doesn't exist yet. Is there something more you are looking for? If your talking about the initial loading of the react app there isnt much you can do about that since it would have to be loaded for you to render anything. – Grant Singleton Aug 02 '20 at 02:06
-
Yes im talking about the initial load.So i have to show some loading screen with some progress bar and fade out after certain time right? – Vineet Malik Aug 02 '20 at 02:11
-
Check out this post https://stackoverflow.com/questions/40987309/react-display-loading-screen-while-dom-is-rendering – Grant Singleton Aug 02 '20 at 02:52