如果扩展算子(.)不在redux工作。扩展操作符用于数组构造和析构,并在调用时填充数组中的函数参数。运算符扩展数组(或可迭代对象)元素的情况。
发布于 2017-09-10 22:53:20
open CMD
npm安装
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
https://stackoverflow.com/questions/46149765
复制相似问题