kentcdodds/ama

Named function expression vs arrow function for React components.

kuzyo opened this issue · 1 comments

kuzyo commented

Hello.
In you live streams I'm seeing that you usually create your components with named function expression ? Why do you prefer it to arrow functions. Do you follow any rules when to use which ? Thanks.

Hi! I have blogged about this :) https://kcd.im/fns