March 2026
Intermediate to advanced
512 pages
11h 26m
English
In Chapter 3, Working with a Selector Class, we learned how to build a robust backend for our Lightning Web Components (LWCs), complete with a query utility. Now that we know some backend best practices, let's look at how we can build a frontend to match.
Previously, in Chapter 2, Writing Apex for Lightning Web Components, we introduced the concept of wrapper classes to build a strong foundation for passing data from our Apex into our LWCs with the use of a JSON string. In this chapter, we will be examining two other ways to pass data from Apex to an LWC: passing a wrapper class directly into our JavaScript via imperative Apex, and passings Objects directly into our JavaScript via imperative ...
Read now
Unlock full access