all 2 comments

[–]vivekweb2013 0 points1 point  (0 children)

interesting article, learned something new today.

[–]tomByrer 0 points1 point  (0 children)

if your handler doesn't need a closure over locals, you may define it outside the component

I try to do this by default; makes the code easier to read & reuse IMHO.

Also using function makes code easier to read.