#1.0 Introduction to useState incrementItem = () => { // 왜 이 코드가 아니라 this.setState({item: this.state.item + 1}); // 이 코드일까? this.setState((state) => { return { item: state.item + 1 } }); } 코드1 incrementItem = n => { this.setState({item: n}); } render(){ const {item} = this.state; retrun( this.incrementItem(item+1)}> ); } 코드2 (이렇게도 사용 가능) 코드2 출처 #0 Introduction React Hooks basically let you have ..