+ Start a Discussion
SrinivasaRao LatchuSrinivasaRao Latchu 

A apex class is referred by multiple Lightning components. is that good practice ? Bad Practice ? Please also answer WHY ?

A apex class is referred by multiple Lightning components.  is that good practice ? Bad Practice ? Please also answer WHY ? 
pconpcon
This is good practice everywhere, not just in Salesforce.  By reducing the amount of redundant code, you reduce your amount of time to fix issues as well as reduce the chance you could introduce a fix to one instance but not the other.