I want to ask if somewhere I can find best practices how to develop in LWC and Aura? Salesforce has prepare that kind of document for Apex:


but I don' see similar for LWC or Aura.

1 Answer 1


Yes, We have some very good documentation on Aura component best practice:-

  1. Lightning Components Performance Best Practices
  2. Securing Data in Apex Controllers

For Lightning Web Component, Watch this Youtube session by René Winkelmeyer here:-

Lightning Web Components Best practices

Some of them are:-

  1. Using public, and private properties for effective component composition. When we should use @api or @track variable
  2. Event communication for child-to-parent as well as for sibling components (pubsub). Parent to Child Communication and Child to Parent Communication
  3. pubsub : When, and when not, to use Apex with Lightning Web Components UI Record Api in LWC
  4. Lightning Data Service in LWC (Lightning record form)
  5. Aura interoperabilitys Recipes, Patterns and Best Practices
  6. How to debug Lightning Web Components
  7. How to test Lightning Web Component (Lightning Testing Service) - Jest Tests for Lightning Web Components ( LTS )
  • Thanks sanket kumar!
    – Adamo
    Oct 4, 2019 at 7:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .