title: How to check if the parent component is a specific component?
body: <p>I'm pretty new to ReactJS, but I'm slowly getting behind it.</p>
  
  <p>I want to create a smart component, it should detect if it is "inside" another component and render differently then.</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;Menu&gt;
    &lt;Item /&gt;
  &lt;/Menu&gt;
  </code></pre>
  
  <p>Here, the item component should render as an <strong>anchor</strong>.</p>
  
  <p>If used inside any other component or a div, it should simply render as a <strong>div</strong> as well.</p>
  
  <p>Is there an easy way to check, if a component is inside another component in React?</p>