-3

case 'ADD_TODO': return [ ...state, { text: action.text, completed: false } ]

Bhojendra Rauniyar
  • 78,842
  • 31
  • 152
  • 211

1 Answers1

0

This is the spread operator.

Documentation at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax