import React from 'react'; import { connect } from 'react-redux'; import { Map } from 'immutable'; import EntryEditor from '../components/EntryEditor'; class EntryPage extends React.Component { componentDidMount() { } componentWillReceiveProps(nextProps) { } render() { const { collection, entry } = this.props; return ; } } function mapStateToProps(state, ownProps) { const { collections } = state; const collection = collections.get(ownProps.params.name); return { collection: collection, collections: collections }; } export default connect(mapStateToProps)(EntryPage);