june

Results 3 comments of june

[공식문서]( https://ko.reactjs.org/docs/hooks-effect.html#explanation-why-effects-run-on-each-update )에 보면 clean-up함수가 언마운트시(페이지전환)에만 실행되는건 아닌것 같습니다!

``` switch (action.type){ case GET_POSTS : return { ...state, posts: { loading: true, data: null, error: null } }; case GET_POSTS_SUCCESS : return { ...state, posts: { loading: false, data:...