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 - Best design pattern for collection of objects -

go - serving up pdfs using golang -

sharepoint online - C# CSOM SPView ListItemCollection did not update after I add new field in the SP view -