/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the CC-BY-4.0 license found * in the LICENSE file in the root directory of this source tree. * * @emails react-core */ 'use strict'; import React, {Component} from 'react'; let stylesStr; if (process.env.NODE_ENV === `production`) { try { stylesStr = require(`!raw-loader!../public/styles.css`); } catch (e) { console.log(e); } } const JS_NPM_URLS = [ '//unpkg.com/docsearch.js@2.4.1/dist/cdn/docsearch.min.js', '//unpkg.com/babel-standalone@6.26.0/babel.min.js', ]; export default class HTML extends Component { render() { let css; if (process.env.NODE_ENV === 'production') { css = ( ); } const js = JS_NPM_URLS.map(url => ); return (
{this.props.headComponents} {js} {css} {this.props.postBodyComponents} ); } }