Javascript How To Correctly Call Function From Component In Another

Javascript How To Correctly Call Function From Component In Another