Skip to content

解构应是 ES6 的特性而不是 ES5 的特性 #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
etbox opened this issue Jun 12, 2019 · 0 comments
Open

解构应是 ES6 的特性而不是 ES5 的特性 #50

etbox opened this issue Jun 12, 2019 · 0 comments

Comments

@etbox
Copy link

etbox commented Jun 12, 2019

// 它看上去是这样 (为了可读性使用 ES5 语法书写该函数):
var thunkMiddleware = function ({ dispatch, getState }) {

虽然原文也写的也是 ES5

https://github.com/happypoulp/redux-tutorial/blob/9619c7716d1efb29ec39cebf9dfe56f5bc839e8c/09_middleware.js#L59-L61

但还是要实事求是嘛,不能误人子弟

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant