Activity Forums Salesforce® Discussions What is the use of @track decorators in LWC?

  • Aditya

    Member
    December 21, 2020 at 6:50 am

    Decorators dynamically alter the functionality of a property or function. The ability to create decorators is part of ECMAScript, but these three decorators are unique to Lightning Web Components. @api: To expose a public property, decorate it with @api. Public properties define the API for a component.

  • Marziya

    Member
    December 21, 2020 at 1:00 pm

    The ability to create decorators is part of ECMAScript, but these three decorators are unique to Lightning Web Components. @api: To expose a public property, decorate it with @api. Public properties define the API for a component.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos