Basically i would like to render the title element into the head element like this
<head>
<HeadFragment />
</head>
this is only possible at the moment by actually rendering as the component, but this will cause all kinds of issues if you use external scripts that inject into the head.
i basically want
var HeadFragment = React.createClass({
render: function () {
return (<fragment>
<title>{this.props.title}</title>
... meta ...
... styles ...
... scripts ...
</fragment>)
}
});
React.render(<HeadFragment />, document.querySelector('head'));
but the fragment node should not be an actual DOM node, instead it would be a document fragment.
without this support it makes full page rendering pretty much impossible, and forces us to do a bunch of other stuff in order to modify things like this without breaking the HTML spec.