javascript - Uncaught ReferenceError: Redux is not defined or Uncaught ReferenceError: createStore is not defined -


i try import redux library pages this:

import redux 'redux'; 

and 2 types of errors in chrome console:

uncaught referenceerror: redux not defined 

or

uncaught referenceerror: createstore not defined 

what issue?

you should use instead:

import { createstore } 'redux'; 

then going refer createstore , not use redux variable.
accourding misterious reasons redux developers not named global var after name of library.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

android - IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling -