You can use switch to handle the null case (you can either show a loader or just render nothing by returning null) I am using the component state to illustrate the idea, but you can apply it to your redux connected Component
class App extends React.Component {
state = {
…
Top comments (0)