2

createStore is being cancelled while trying to import from redux.

import {createStore} from 'redux' is not working at all on visual studio code.

Whemmy
  • 21
  • 4
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community May 09 '22 at 00:11

1 Answers1

1

createStore is shown crossed out because is deprecated.

It's possible to keep using it (no warnings or errors appear) but Redux developers are encouraging the use of Redux Toolkit for writing Redux logic.

Even for existing applications, we recommend at least switching out createStore for configureStore

More info:

angelgr
  • 11
  • 2