Skip to content

Instantly share code, notes, and snippets.

@rpf5573 rpf5573/test.js
Created Dec 11, 2018

Embed
What would you like to do?
render(
{ this.props.postInfos.map((postInfo, i) =>
<PostInfoRow
key={i} // key를 그냥 배열의 index로 설정했다
postInfo={postInfo}
onUpdate={this.props.updatePostInfo}
onRemove={this.props.removePostInfo} ></PostInfoRow> ) }
{ this.renderNewRows(this.state.newRows) }
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.