What are two best practices when it comes to Lightning Web Component events? (Choose two.)
A. Use event.detail to communicate data to elements in the same shadow tree.
B. Use CustomEvent to pass data from a child to a parent component.
C. Use event.target to communicate data to elements that aren't in the same shadow tree.
D. Use events configured with bubbles: false and composed: false.
Suggest answer: BD
Reference:
No comments:
Please share to make the community better.