how to find current recordid and object name in aura component code example
Example: how to find current recordid and object name in aura component
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId,force:hasSObjectName">
<aura:attribute name="recordId" type="String" />
<aura:attribute name="sObjectName" type="String" />