In this video we cover how to utilize Javascript Modules (ES6) to create utility classes for Lightning Web Components (LWC). This will help reduce the amount of code in your org for your Lightning Web Components and make it so there is just a single point of reference for all of your common shared code between components.
Please consider donating to help continue to improve the content produced for Coding With The Force: https://www.paypal.com/donate?busines...
Get Coding With The Force Merch Here: https://my-store-d20559.creator-sprin...
GitHub repository with the code here: https://github.com/Coding-With-The-Fo...
For more information on this check out the blog post here: http://codingwiththeforce.com/salesfo...
Follow all of our social media here:
Patreon: / codingwiththeforce
Github: https://github.com/Coding-With-The-Force
Facebook: / codingwiththeforce
Twitter: / coding_force
Instagram: / codingwiththeforce
Salesforce development books I recommend:
Advanced Apex Programming: https://amzn.to/3lXi8to
Salesforce Lightning Platform Enterprise Architecture: https://amzn.to/2R0D4BQ
Mastering Salesforce DevOps: https://amzn.to/3lTtTRN
Apex Design Patterns Book: https://amzn.to/3DwqljP
Good Non-SF Specific Development Books:
Clean Code: https://amzn.to/35PuMDU
Clean Architecture: https://amzn.to/35FYo6A
Design Patterns: Elements of Reusable Object-Oriented Software Book: https://amzn.to/3LhvHBd
--------------------------------------------------------------------------------------------------------------------------------------------
Table of Contents:
0:00 - Intro
0:23 - Why Create LWC Utility Modules
3:12 - Creating the Utility Module
9:11 - Importing the Utility Module
16:04 - Demoing the Utility Module
19:20 - Outro
DISCLAIMER: The views and ideas expressed on this YouTube channel and blog are based on past development experiences and may not always work for your particular scenarios. The advice in these videos may also become outdated as technology advances. They should be used as examples for educational purposes only. Using any shown solutions in your own org is not advisable since they are example scenarios.
#salesforce #salesforcedeveloper #salesforceadmin