react event 처리시 에러
This synthetic event is reused for performance reasons. If you're seeing this, you're accessing the property `target` on a released/nullified synthetic event. This is set to null. If you must keep the original synthetic event around, use event.persist(). this.setState((state) => ({ checkedSong: { ...state.checkedSong, [name]: ev.target.checked // 요놈이 문제 } })) 위와 같이 event 속성을 직접적으로 비동기 함수에 적용할 때 ..
2018. 10. 6. 23:28