I’m a Redux maintainer, and the person who added that “createStore is deprecated” message 🙂
For the record this has nothing to do with your actual application code. It is specifically a message to users like you who are using “plain Redux” – it’s trying to tell you that you’re following patterns that are much harder to use, and we want you to use Redux Toolkit instead because it will make your life much easier 🙂
You’ll note that this isn’t even a runtime warning being printed in the console – it’s literally just a visual indicator in your editor, like .createStore
Please see these Redux docs pages for more details on why we want people using Redux Toolkit to write Redux code, and how to do so:
- Why Redux Toolkit is How To Use Redux Today
- Migrating to Modern Redux
- Redux Fundamentals, Part 8: Modern Redux with Redux Toolkit
- Redux Essentials, Part 2: Redux App Structure
- Redux 4.2.0 release notes