Component sendAction code sample

I think that the API evolved and the code sample wasn't adapted, right?
Merge pull request #4214 from MajorBreakfast/patch-1

Component sendAction code sample