Let’s take an example of adding a lightning component on Account Record 

  1. Go To Account -> Select any record -> Click on setup icon -> Click on Edit Page
  2. Account record page is now open
  3. Search component: MyOpportunities or you will see the component in the custom section on the left side menu.
  4. Drag and Drop MyOpportunities to Anywhere in the record page wherever you want to display all opportunities.
  5. Click on Save
  6. Click on Activate and follow the instruction for activation (If the record page is not activated).