title: Pass a wrapper component as props in ReactJS
body: <p>I am trying to pass a wrapper component as props. Is something like this technically possible in React?</p>
  
  <pre class="lang-js prettyprint-override"><code>import React, {Component, PropTypes} from 'react';
  import ChildComp from './child-comp';
  
  class Comp extends Component {
    render() {
      const { Wrapper } = this.props;
      return (
        &lt;Wrapper&gt;
          &lt;ChildComp /&gt;
        &lt;/Wrapper&gt;
      );
    }
  }
  
  Comp.propTypes = {};
  
  export default Comp;
  </code></pre>