Skip to content

Comments

Allan 24#2

Open
allanliebold wants to merge 3 commits intocodefellows-javascript-401d17:masterfrom
allanliebold:allan-24
Open

Allan 24#2
allanliebold wants to merge 3 commits intocodefellows-javascript-401d17:masterfrom
allanliebold:allan-24

Conversation

@allanliebold
Copy link

No description provided.

</div>

{renderIf(this.state.editing,
<NoteUpdateForm
Copy link

@bhavyaab bhavyaab Aug 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NoteUpdateForm is not a component. You want to reuse the NoteCreateForm component in order to update the state.

return (
<section className='note-container'>
<div>
<NoteCreateForm handleSubmit={this.noteCreate} />
Copy link

@bhavyaab bhavyaab Aug 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to pass "props" we are supposed to pass it with the same name we are accessing in the child node. In this case, may be you want to use noteCreate instead of handleSubmit.

<p onClick={this.handleEdit}>{item.content}</p>
</div>

{renderIf(this.state.editing,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

randerIf, is not an in build function You may want to define it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants