I don't think large functions by themselves are really a problem. Large function that do way too many things without any structure or good flow could easily become a problem though.
Also, yeah, that createComponent function is difficult to understand... but maybe because I don't know much about VueJS
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.