set,get, 함수이름에 handle를 붙이느 이유
·
javascript
set(activeTabAtom, tab);= tab에 따른 activetabAtom을 변경한다. // UI 관련 작업 (handle 붙임)handleAddProductAtom // 폼 보여주기handleDeleteProductAtom // 삭제 후 알림 등// 데이터 작업 (handle 없음)addProductAtom // 실제 추가deleteProductAtom // 실제 삭제= 결국 onclick/onSubmit 처럼 버튼 같은 곳에서 사용되는 함수는 handle를 붙이고 데이터가 조작되는 함수에는 붙이지 않는다.= toggle /reset 에는 예외 처리가 될 수 도 있다.