title: is there a way to have templates in react
body: <p>I have built an element which is kind of template. (e.g, thumbnail container with image at the top and something in the footer with dynamic content between them)
  the dynamic content can be different types of DOM elements, based on the state.
  I did it with adding logic in the render method which "injects" the dynamic part. 
  Does this make sense (having logic in the render method which returns different react components)?
  Is there a better way for templating? (i'm not looking for projects that add this capability, wanted to know if there's a "react way" to do so.
  Thanks!</p>
  
  <p>edit: here's the code I was referring to (coffeescript):</p>
  
  <pre><code>internalContent: -&gt;
    switch @props.title
      when "title1" then SomeReactFactory(props)
      when "title2" then SomeOtherReactFactory(props)
  
  render -&gt;
    ...
    DOM.div
      className: 'panel'
      @internalContent()
  </code></pre>
  
  <p>the <code>internalContent()</code> method is dynamically adding some React Component based on the prop</p>