Why this Cookbook?

I wrote this LWC Cookbook for myself, as much as for anyone else, with 3 pillars proven to be truth in my learning experience:
- If I can’t explain it I don’t know it
- I only learn by practice
- In theory, theory and practice are the same. In practice, theory is not enough, while practice without theory is insufficient.
My experience with online resources is not great for learning LWC:
- With YouTube videos:
- Usually is outdated. The author made a considerable effort to produce the initial content, but as new releases appeared, this content is not updated, as it requires doubling the effort to record, edit and publish again.
- I don’t learn by only watching (theory). Even if recently produced, videos offer a pure unidirectional experience.
- Many times code is not available.
- With Blog Articles (I know because I’ve been there):
- Articles are arbitrarily created on use cases that the author is interested, instead of simple recipes to understand the main capabilities and getting the foundational knowledge.
- The code quality is far from optimal, missing test classes, comments, not using the latest language capabilities and opinionated formatting.
- The LWC terminology is used inconsistently (not by all but for many authors): properties/variables, private/public, ancestor/parent, libraries/methods which makes my learning inefficient.
- Unfortunately, many new authors tend to recreate or merely copy other’s author's content or the official documentation, gathering volume but not quality, just to be noticed.
- And … I don’t learn only by reading.
- Official Salesforce documentation is a reference, but not a good learning experience, at least, for me.
- Trailhead is an outstanding starting point but lacks the depth required for LWC and the continuous update of the code, and to be honest, and with all the jokes, particularly focused on the US market, and lengthy introductions, I tend to scan diagonally, which it is not ideal.
💫 … LWC Recipes, the secret sauce to your success!!!
But, one of the resources that took my attention was the LWC Recipes code Repository by the Salesforce Evangelist team:
- It is an organized list of small recipes, laser-focused on concrete platform capabilities.
- Recipes are created by super savvy guys at the Salesforce Developer Advocate Team inside Salesforce, they know their stuff super well.
- The quality of the code is top-notch: the latest improvements on the platform appear for every release, with efficient code, curated formatting, consistent naming convention, etc.
- The full repo is available in Github, updated on every release, and many times referenced on blog posts.
But unfortunately:
- These recipes are not commented in detail, even though sometimes, the official documentation references these recipes, are not explained in detail.
- The recipes are provided in a raw format source code, but not linked to any documentation, that allows you to understand the capabilities that are demoed.
- Also, the same team creates magnificent videos on YouTube, but they are not linked neither.
So, I thought that if I could focus on those LWC recipes, adding some of my findings with explanations in a simple, concise and attractive format (kind of book+website) that would be ideal for my learning experience, and the LWC Cookbook ranked as a personal side project.
I ended up with this:
- Explaining every single recipe: a main introduction with links to Product Wiki to familiarize me with the capability that is demoed, and analyze the important staff in the XML configuration file, the HTML template file and the JavaScript for every recipe.
- I use AI, exclusively to check my grammar and vocabulary, as I am not a native English speaker and for the image generation exclusively.
- When useful, the recipe is linked to my Product Wiki to understand the capability in detail. Also, when useful, I will link external content to help understand the recipe, but I am reluctant to do it, for the reasons exposed above.