開発者は、さまざまなデバイスで応答する Lightning Web コンポーネントを作成する任務を負っています。この目標を達成するには、どの 2 つのコンポーネントが必要ですか?
2 つの答えを選択してください
正解:C,D
The two components that should help accomplish the goal of creating a Lightning web component that is responsive on various devices are lightning-layout and lightning-layout-item. These components allow the developer to create flexible and responsive layouts that can adapt to different screen sizes and orientations. The lightning-layout component creates a horizontal or vertical container that can hold one or more lightning-layout-item components. The lightning-layout-item component represents a single item in the layout, and can have attributes such as size, padding, alignment, and order, that control how the item is rendered in the layout. The lightning-navigation component is not a valid answer, as it is used to navigate to a given page reference or to generate a URL from a page reference, but it does not affect the responsiveness of the component. The lightning-input-location component is not a valid answer, as it is used to display and edit the address fields of a location, but it does not affect the responsiveness of the component. Reference: [Lightning Layout], [Lightning Web Components Developer Guide]