skip to Main Content

I tried adding redux to my react-native project, but when using the createStore method of redux, VSCode told me that it was deprecated and I should use redux-toolkit instead. I added it to my project, but I wander if I can remus the redux package now when I have the @reduxjs/toolkit installed?

2

Answers


  1. @reduxjs/toolkit uses redux as a dependency package, so it has be installed, but don’t use it in your code

    https://www.npmjs.com/package/@reduxjs/toolkit?activeTab=dependencies

    Login or Signup to reply.
  2. Yes, part of the point of Redux Toolkit is that it already includes the redux core package automatically. So, you don’t have to list redux in your package.json – just @reduxjs/toolkit.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search