node编译程序踩坑及解决方案:ES6转ES5
今天笔者正在学习Redux,编写了一个程序准备运行体会一下,代码如下: import {createStore} from 'redux' function counter(state = 0, action) { switch (action.type) { case 'INCREMENT': return state + 1; case 'DECREMENT': return state - 1; default: return state; } } let store = createStore(counter); store.subscrib
暂无评论