happypoulp / redux-tutorial

Learn how to use redux step by step
3.76k stars 546 forks source link

Error in ...state #93

Closed yangfei19881024 closed 8 years ago

yangfei19881024 commented 8 years ago

Hello,Thanks for your redux-tutorial ,but during my studying with you tutorial , There is a error in 04_get-state.js which is ...state Unexpected token;Can you help me ? Thanks a lot!

happypoulp commented 8 years ago

Hi,

How do you run the examples (what command are you using)?

yangfei19881024 commented 8 years ago

Thanks for answering my question ,I know how to fixed it ! It's ES7 new feature.

happypoulp commented 8 years ago

Yes you're supposed to run the examples using npm run example <example_file.js> which runs babeljs for you (the babeljs local to the tutorial, not the one you might have globally installed).