Work with Records Using Base Components

To create forms that let users view, edit, and create Salesforce records, use the lightning-record-form, lightning-record-edit-form, and lightning-record-view-form components.

The lightning-record*form components are the easiest way to work with records. They provide a UI to view, create, and edit records—similar to the record detail page in Salesforce. To create a custom UI, or if you don’t need a metadata-driven UI, use a wire adapter.