You can do it easily with HOC. Create a function that will take the tab component as a parameter. If the data is not loaded, you show your preloader component, when the data is loaded - it shows your tab component.
For example - github.com/victor-magarlamov/maiof...
thanks for the reply, but I couldn't quite understand what you mean by tab component. Have a look at the site I mentioned brittanychiang.com, the splash screen/preloader on page first load is what I am talking about. Thanks for your time.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You can do it easily with HOC. Create a function that will take the tab component as a parameter. If the data is not loaded, you show your preloader component, when the data is loaded - it shows your tab component.
For example - github.com/victor-magarlamov/maiof...
thanks for the reply, but I couldn't quite understand what you mean by tab component. Have a look at the site I mentioned brittanychiang.com, the splash screen/preloader on page first load is what I am talking about. Thanks for your time.