What is the recommend way to accomplish this?

A developer created a weather app that contains multiple Lightning web components.

One of the components, called Toggle, has a toggle for Fahrenheit or Celsius units. Another component, called Temperature, displays the current temperature in the unit selected in the Toggle component

When a user toggles from Fahrenheit to Celsius or vice versa in the Toggle component, the information must be sent to the Temperature component so the temperature can be converted and displayed.

What is the recommend way to accomplish this?
A . Create a custom event to handle the communicate between the components.
B . Use Lightning Message Service to communicate between the component.
C . Use Lightning Message Service to communicate between the components.
D . The Toggle component should call a method in the Temperature component.

Answer: A

Latest PDI Dumps Valid Version with 191 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments