score:0

this is perhaps one way to do it

const react = require('react');


module.exports = function (children) {

    return react.createclass({

        renderchildren: function () {

            return children.map(function (item) {

                var comp = item.comp;
                var props = item.props;

                return (
                    <div>
                        <comp {...props}/>
                    </div>
                )
            });

        },

        render: function () {

            return (

                <html lang="en">
                <head>
                    <meta charset="utf-8"></meta>
                    <title>title</title>
                </head>
                <body>

                <div>
                    {this.renderchildren()}
                </div>

                </body>
                </html>

            )

        }

    });
};

score:3

this is built in react

var parent = react.createclass({

   render: function(){

      return (
        <div>{ this.props.children }</div>
      )
   } 

})

usage:

 reactdomserver.rendertostring(<parent><children /><parent>)

Related Query

More Query from same tag