redux에서 제공하는 createStore에 대뜸 취소선이 그어졌다. 왜그럴까?
마우스 hover 했더니 @reduxjs/toolkit에서 제공하는 configureStore로 쓰라고 한다.
바로 redux 공식문서로 호다닥 뛰어가서 redux github 뒤져봤더니
WE ARE NOT GOING TO ACTUALLY REMOVE THE createStore API, AND ALL YOUR EXISTING CODE WILL STILL CONTINUE TO WORK AS-IS!
Again, no broken code, and no runtime warnings.
If users do not want to see that strikethrough, they have three options:
1.Follow our suggestion to switch over to Redux Toolkit and configureStore
2.Do nothing. It's just a visual strikethrough, and it doesn't affect how your code behaves. Ignore it.
3.Switch to using the legacy_createStore API that is now exported, which is the exact same function but with no @deprecation tag. The simplest option is to do an aliased import rename:
그럼 이들이 제안하는 Toolkit은 어떤 것들이 있는지 알아보자~