如果Spread Operator不在redux中工作(If Spread Operator is not working in redux)
如果Spread Operator(...)在redux中不起作用。 spread运算符用于数组构造和解构,并在调用时填充数组中的函数参数。 运算符展开数组(或可迭代对象)元素的情况。
If Spread Operator (...) is not working in redux. The spread operator is used for array construction and destructuring, and to fill function arguments from an array on invocation. A case when the operator spreads the array (or iterable object) elements.
最满意答案
open CMDnpm install --save-dev babel-plugin-transform-object-rest-spread
and then create a file named .babelrc in your project directory, write the following code in it. Save and run npm. { "plugins": ["transform-object-rest-spread"] } Shared from https://github.com/kpilard open CMDnpm install --save-dev babel-plugin-transform-object-rest-spread
and then create a file named .babelrc in your project directory, write the following code in it. Save and run npm. { "plugins": ["transform-object-rest-spread"] } Shared from https://github.com/kpilard更多推荐
发布评论