happypoulp / redux-tutorial

Learn how to use redux step by step
3.76k stars 546 forks source link

Need help with understanding syntax? #105

Closed sooham closed 8 years ago

sooham commented 8 years ago

Hi happypoulp, I love your tutorial! I was wondering what the syntax on chapter 07 is, is this like a ES6 spread?

var sayActionCreator = function (message) { return { type: 'SAY', message } }

the argument to function is of type String, so I'm a bit confused