Back in 2014 when Salesforce launched Aura components, web stack offered limited functionalities:
- Rendering Engine
- Standard elements
- ES5 (ECMAScript 5)
Web stack then had unoptimized rendering, less of standard elements, client side scripting lacked modern constructs (modules, classes, promises etc). To overcome these flaws frameworks were introduced.
Web Stack Upgradation
These shortcomings led to enhancements in web standards, last few years have been revolutionary in web development. These enhancements led to introduction of
- Web Components
- Custom elements
- Shadow DOM
Now with Lightning web components we are shifting to web standards from custom frameworks which were used to fill the gaps in core stack earlier. Today we have a much lighter framework which act as a thin layer of specialized services on top of these web standards.
Advantages of LWC
- Common component model.
- Common programming skills.
- Better performance as web stack is enhanced and has features embedded in web engines instead of frameworks.