Now we can add this lightning component on account detail page.
1. Go to Account tab.
2. Open any record.
3. Click Setup (Gear Icon) and select Edit Page.
4. Under Custom Components, find your CurrentrecordIdExample component and drag it on record page.
5. Click Save and activate.