import { clearCompose } from '../../actions/compose' import ComposeFormContainer from './containers/compose_form_container' const mapDispatchToProps = (dispatch) => ({ onClearCompose:() => dispatch(clearCompose()) }) export default @connect(null, mapDispatchToProps) class Compose extends PureComponent { static propTypes = { onClearCompose: PropTypes.func.isRequired, } componentWillUnmount() { this.props.onClearCompose() } render () { return (