returning the component function after declaration, in order to avoid errors from some linters