force:inputField component is used to display fields of a particular sObject with the appropriate type. In other words, we don’t have to explicitly specify the type of the field. The component automatically renders the type.
For example: If the type of the field is date, then displays the Data Picker. Similarly if it is picklist, then a dropdown appears.
For more details refer to
If you're ready to find out more about how SimplusLabs can help energize your workers, your customers, and your business with a different experience, let's talk.