Architectural differences between Visualforce and Lightning Web Components!
In this blog, you will learn how your Visualforce knowledge applies to Lightning Web Components.
Visualforce is a server-side templating language.
When the client (browser) requests a Visualforce page, the server renders it, and sends it to the client as HTML.
When the UI needs to change (in response to a link click on the page, for example), the client requests a newly rendered page from the server.
The server processes the UI change and sends the full page back to the client.
In Lightning web components, the client does most of the heavy lifting.
To render a Lightning web component, it requests the component files from the server, processes the files to generate the appropriate markup, and then renders the component UI.
Because the client can handle logic, sometimes it performs UI changes without a full callback to the server.
It calls the server only when needed, such as when the component needs new data.
JavaScript plays a big role in Lightning web components. Every component has a JavaScript file that regenerates the UI when needed.
Components also call the server using JavaScript to retrieve or modify Salesforce data when needed.
Follow Us