반응의 공리에서 반응 상태를 설정하는 방법 get response 상태를 axios로 설정하려면 어떻게 해야 합니다. axios.get(response){ this.setState({events: response.data}) } 구문 오류가 있습니다.대신 이걸 써보세요 var self = this; axios.get('/url') .then(function (response) { console.log(response); self.setState({events: response.data}) }) .catch(function (error) { console.log(error); }); //the rest of the code var a = 'i might be executed before the server..