returning the component function after declaration, in order to avoid er...

...rors from some linters. closes #3