corrected signature of mountComponent to current version