0

如果扩展运算符 (...) 在 redux 中不起作用。扩展运算符用于数组构造和解构,并在调用时从数组中填充函数参数。运算符传播数组(或可迭代对象)元素的情况。

4

1 回答 1

1
open CMD

npm 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
于 2017-09-11T06:53:20.837 回答