ExamGecko
Question list
Search
Search

List of questions

Search

Question 191 - Certified B2B Commerce Administrator discussion

Report
Export

How should data for Lightning web components be provided?

A.
A few properties that contain sets (objects) of data
Answers
A.
A few properties that contain sets (objects) of data
B.
A single property object that contains sets (objects) of data
Answers
B.
A single property object that contains sets (objects) of data
C.
Independent properties that take simpler, primitive values (e.g. String, Number, Boolean, Array)
Answers
C.
Independent properties that take simpler, primitive values (e.g. String, Number, Boolean, Array)
D.
One property that contains all data in one set (object)
Answers
D.
One property that contains all data in one set (object)
Suggested answer: C

Explanation:

Lightning web components use a reactive programming model, which means that the framework automatically re-renders the component when its data changes. To make this possible, the component must declare its properties as independent and simple values, such as strings, numbers, booleans, or arrays. If the component uses complex objects or sets of data as properties, the framework cannot detect the changes and the component will not update correctly. Therefore, it is recommended to use independent properties that take simpler, primitive values for Lightning web components.

asked 23/09/2024
Ali Reza Azmi
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first