인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

열씨미살자!'s profile image
열씨미살자!

asked

Redux vs MobX (Learn Both!)

2-5. react-redux

getState()

Written on

·

563

0

혹시 useSelector(state => state.user)로 react에서는

분리된 userReducer의 state만 가져올 수 있는데

일반 js에서는 store.getState()로 전체만 들고 올 수 있는 것 같은데 이건 react-redux에서만 구현되어있나요?

reduxmobx

Answer 1

0

zerocho님의 프로필 이미지
zerocho
Instructor

네 useSelector 자체가 내부적으로 store.getState().user 이런 식으로 가져오게 되어 있습니다.

열씨미살자!'s profile image
열씨미살자!

asked

Ask a question