docs/src/modules/utils/generateMarkdown.ts/generateInheritance
function generateInheritance(reactAPI: ReactApi): string {
  const { inheritance } = reactAPI;

  if (!inheritance) {
    return '';
  }

  let suffix = '';

  switch (inheritance.component) {
    case 'Transition':
      suffix = ', from react-transition-group,';
      break;

    default:
      break;
  }

  return `## Inheritance

The props of the [${inheritance.component}](${inheritance.pathname}) component${suffix} are also available.
You can take advantage of this behavior to [target nested components](/guides/api/#spread).

`;
}