title: Check if variable is React node or array
body: <p>I'd like to have a condition that states if a prop is a React node then just place it as a child within a component, and if it's not, take some action to make it into a component.
  This way my component will be able to accept this prop as an array of strings, or an array of nodes.</p>
  <p>I tried to check if <code>React.PropTypes.node</code> would return a boolean but it doesn't work.</p>
  <p>Say I have a module called <code>List</code> and there's a prop called <code>items</code>. I'd like to be able to pass</p>
  <pre><code>var items = [
    &quot;One&quot;,
    &quot;Two&quot;,
    &quot;Three&quot;
  ]
  </code></pre>
  <p>as well as</p>
  <pre><code>var items = function () {
    return (
      &lt;li&gt;One&lt;/li&gt;
      &lt;li&gt;Two&lt;/li&gt;
      &lt;li&gt;Three&lt;/li&gt;
    )
  }
  </code></pre>
  <p>And within the component have some logic that would detect the difference and if it's a plain array (not an array of nodes) be able to map the items.</p>