DEV Community

sundaycrunk
sundaycrunk

Posted on

Answer: React rendering content before props is properly mapped / set

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)