Skip to content

Commit

Permalink
added field
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenGrider committed Apr 20, 2017
1 parent 1a71ee1 commit 7cb35d0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion blog/src/components/posts_new.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,23 @@ 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={}
component={this.renderTitleField}
/>
</form>
);
Expand Down

0 comments on commit 7cb35d0

Please sign in to comment.