- React.js 15.3.2 버전 사용 중
- Boilerplate로 react-create-app 사용
- server-side-rendering 지원 x
component, action, reducer 네임 정리
getItems :: (get) /items createItem :: (post) /items
getItem :: (get) /items/3 updateItem :: (put) /items/3 deleteItem :: (delete) /items/3
LogIn 로직
login(component) -> _login(thunk) -> requestLogIn -> receiveLogin
Item 로직 (post 요청 통일 // response를 구분할 필요가 없음, complete 여부만 구분) getItem(component) -> _getItem(thunk) -> requestItem -> receiveItem
createItem(component) -> _createItem(thunk) -> postItem -> completeItem
updateItem(component) -> _updateItem(thunk) -> postItem -> completeItem
deleteItem(component) -> _deleteItme(thunk) -> postItem -> completeItem
Counter: {increment, decrement, diff} Login: {onRequest, refreshToken, jwToken, user}