Pass a React component as a param to another React component
<p>I'm looking for a way to pass a react as param to other react and access it: I've tried something like:</p>

<pre><code>ReactDOM.render(
  &lt;someReactFunction 
    param1={['test','test1']} 
    param2={[{&lt;someOtherReactFunction someParam={testParam || ''} /&gt;}]} 
  /&gt;, 
  document.getElementById('someDiv'));
</code></pre>

<p>But I get JSX value should be either an expression or a quoted JSX text pointing to <code>document.getElementById('someDiv')</code></p>

<p><strong>EDIT</strong> After correcting some syntax error I get:</p>

<p><code>: Unexpected token</code> Error pointing to the symbol <code>&lt;</code> at <code>[{&lt;someOtherReactFunction</code></p>

<p>Any help is greatly appreciated.</p>