Can't set state in react
问题 So, I'm simply trying to set state in my react app. Simply get data from Axios, and then set state. But no matter what I do, the state will not set. I've tried putting it in a callback since it's async and putting it my component did mount and component did update alas nothing. any pointers? class App extends Component { componentDidUpdate() {} constructor(props) { super(props); this.state = { Catogories: [ "Business", "Entertainment", "General", "Health", "Science", "Sports", "Technology" ],