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) { console.log('Got new entry: %o', entry.toObject()); this.setState({entry: entry}); } render() { const { collection, entry } = this.props; return

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

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

} }