const newPaths = [...this.state.paths] newPaths.pop()구조분해 할당으로 새 배열을 만들어야지 this.state.paths 값을 그대로 넣고 조작하면 결국 this.state.paths를 조작하게 되는 것이므로 안됨.