pdi question 280 discussion

View all Platform Developer I Exam here
back to salesforce forum

Question 280

What are two best practices when it comes to Lightning Web Component events?

  • A. Use event.target to communicate data to elements that aren't in the same shadow tree.
  • B. Use events configured with bubbles: false and composed:false.
  • C. Use CustomEvent to pass data from a child to a parent component.
  • D. Use event.detail to communicate data to elements in the same shadow tree
Answer:

A, C


User Votes:
A 1 votes
50%
B 1 votes
50%
C 2 votes
50%
D 2 votes
50%
Discussions
0 / 1000
Soukoum
1 year ago

Answers are A and C

Soukoum
1 year ago

Answers are D and C