constructor(props) {
super(props);
console.log('constructor함수는 class형 컴포넌트가 생성할 때 호출');
}
componentDidMount() {
console.log('컴포넌트가 처음 화면에 그려지면 실행 됨');
}
componentDidUpdate() {
console.log('화면이 새로 그려지면 즉 업데이트 되면 실행 됨');
}
componentWillUnmount() {
console.log('컴포넌트가 죽을 때 실행 됨');
}
axios.get('url');