Reputation: 1354
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.
Upvotes: 0
Views: 145
Reputation: 1354
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
Upvotes: 1