React component not re-rendering on state change

后端 未结 7 803
抹茶落季
抹茶落季 2021-02-02 05:59

I have a React Class that\'s going to an API to get content. I\'ve confirmed the data is coming back, but it\'s not re-rendering:

var DealsList = React.createCla         


        
7条回答
  •  -上瘾入骨i
    2021-02-02 06:37

    My issue was that I was using 'React.PureComponent' when I should have been using 'React.Component'.

提交回复
热议问题