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

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -