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

python - django admin: changing the way a field (w/ relationship to another model) is submitted on a form so that it can be submitted multiple times -

go - serving up pdfs using golang -

ffmpeg - Using Live555 HTTP capacities as a server for signaling -