import React from 'react' import htmlescape from 'htmlescape' import readPkgUp from 'read-pkg-up' const { pkg } = readPkgUp.sync({ cwd: __dirname, normalize: false }) export default ({ head, css, html, data, dev, staticMarkup, cdn }) => { return
{(head || []).map((h, i) => React.cloneElement(h, { key: i }))} {staticMarkup ? null : } {staticMarkup ? null : createClientScript({ dev, cdn })} } function createClientScript ({ dev, cdn }) { if (dev) { return } if (!cdn) { return } return }