function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.