Component:It's a piece of apex code that can be used for reusability purpose.
Visualforce Component:Visualforce components are page-centric and most of the work is done on the server.
Use of Component:If you want any repeated section for many pages so instead of creating each and every page with same copy paste code just create one component and use for other pages that will be more useful.
It's like we need a specific common portion for all visual force page then we can go for component, it shows how you are reusing your code.
You can also use lightning components in visual force page.
Kindly mark this post as solved if the information help's so that it gets removed from the unanswered queue and becomes a proper solution which results in helping others who are really in need of it.
Please refer below links-
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_comp_cust_using.htm
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_component.htm
Thanks,
Swaraj Behera
Component:It's a piece of apex code that can be used for reusability purpose.
Visualforce Component:Visualforce components are page-centric and most of the work is done on the server.
Use of Component:If you want any repeated section for many pages so instead of creating each and every page with same copy paste code just create one component and use for other pages that will be more useful.
It's like we need a specific common portion for all visual force page then we can go for component, it shows how you are reusing your code.
You can also use lightning components in visual force page.
For more information check with below link:
- https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_visualforce.htm
For limitations check with below link:- https://releasenotes.docs.salesforce.com/en-us/winter16/release-notes/lex_gaps_limitations_programmatic.htm
Number of components in visual force:Here is the link which provides the detailed description of visualforce components and their usage in salesforce.- https://na43.salesforce.com/apexpages/apexcomponents.apexp
Kindly mark this post as solved if the information help's so that it gets removed from the unanswered queue and becomes a proper solution which results in helping others who are really in need of it.Best Regards,
Nagendra.P