import React, { Component } from 'react'; import Bundle from 'react-bundle'; import Loader from '../status-loader'; class ManifestEditorBundle extends Component { constructor() { super(); this.state = {}; this.handleRender = this.handleRender.bind(this); } handleRender(ManifestEditor) { if (ManifestEditor) { setTimeout(() => { this.setState({ ManifestEditor }); }, 80); } return ; } render() { if (!this.state.ManifestEditor) { return ( import('joyent-manifest-editor')}> {this.handleRender} ); } const { ManifestEditor } = this.state; const { children, ...rest } = this.props; return {children}; } } export default ({ input, mode, defaultValue, readOnly }) => ( );