function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Abhiraj DattaAbhiraj Datta 

Do we always have to declare the "required=True" attribute while declaring attribute definition in a Lightning Component?

Kaustubh LabheKaustubh Labhe
No, the default is false. 
Are you getting any error in this regard? 
Abhiraj DattaAbhiraj Datta
While completing a trailhead challenge, I had to use that. So had a confusion like if it is mandatory to give the 'required' attribute. Below is the challenge.

https://trailhead.salesforce.com/modules/lex_dev_lc_basics/units/lex_dev_lc_basics_attributes_expressions?trailmix_creator_id=00550000006yDdKAAU&trailmix_id=prepare-for-your-salesforce-platform-app-builder-credential