Redux: Simplifying the Arrow Functions

Share this video with your friends

Send Tweet

We will learn how to reduce the syntactic noise in the action creators and components when using arrow functions.

Pavel Dolecek
Pavel Dolecek
~ 8 years ago

Would be great to have ESLint rule to enforce this :)

Dan Abramov
Dan Abramov(instructor)
~ 8 years ago

There is one—I believe it’s enabled in https://github.com/gaearon/todos. It’s part of the Airbnb preset.

J. Matthew
J. Matthew
~ 5 years ago

Looks like the lint rule enforces the "implicit return" covered in the first part of the video, but not the ES6 method notation covered in the second.