diff --git a/lib/document.js b/lib/document.js index 65cff06a..07fdf4e4 100644 --- a/lib/document.js +++ b/lib/document.js @@ -1,63 +1,16 @@ -import React, { Component, PropTypes } from 'react' +import React from 'react' import htmlescape from 'htmlescape' -export default class Document extends Component { - static childContextTypes = { - _documentProps: PropTypes.any - } - - getChildContext () { - return { - _documentProps: this.props - } - } - - render () { - return - - -
- - - - - } +export default ({ head, css, html, data, dev, staticMarkup }) => { + return + + {(head || []).map((h, i) => React.cloneElement(h, { key: i }))} +