import React from 'react'; import ControlPane from './ControlPane'; import PreviewPane from './PreviewPane'; export default class EntryEditor extends React.Component { constructor(props) { super(props); this.state = {entry: props.entry}; this.handleChange = this.handleChange.bind(this); } handleChange(entry) { this.setState({entry: entry}); } render() { const { collection, entry } = this.props; return

Entry in {collection.get('label')}

{entry && entry.get('title')}

; } } const styles = { container: { display: 'flex' }, pane: { width: '50%' } };