import React, { Component } from 'react';

class PostsNew extends Component {
  render() {
    return (
      <div>
        PostsNew!
      </div>
    );
  }
}

export default PostsNew;
import React, { Component } from 'react';
import { Field, reduxForm } from 'redux-form';

class PostsNew extends Component {
  renderTitleField(field) {
    return (
      <div>
        <input 
          type="text"
          {...field.input}
        />
      </div>
    );
  }

  render() {
    return (
      <form>
        <Field
          name="title"
          component={this.renderTitleField} />
      </form>
    );
  }
}

export default reduxForm({
  form: 'PostsNewForm'
})(PostsNew);
Add title field to PostsNew