import React, {Component, PropTypes} from 'react'; import Editor from './base/Editor' class RequestBodyEditor extends Component { shouldComponentUpdate (nextProps) { return this.props.request !== nextProps.request; } render () { const {request, onChange, className} = this.props; const mode = request.contentType || 'text/plain'; return ( ) } } RequestBodyEditor.propTypes = { request: PropTypes.shape({ body: PropTypes.string.isRequired }).isRequired, onChange: PropTypes.func.isRequired }; export default RequestBodyEditor;