0

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.

Patrick Roberts
  • 49,224
  • 10
  • 102
  • 153
PremKumar
  • 1,282
  • 4
  • 25
  • 43

1 Answers1

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
PremKumar
  • 1,282
  • 4
  • 25
  • 43