-3

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

Bhojendra Rauniyar
  • 83,432
  • 35
  • 168
  • 231

1 Answers1

0

This is the spread operator.

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