Skip to content

Instantly share code, notes, and snippets.

@rpf5573
Created December 11, 2018 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rpf5573/df93349a07de05a4367d32bb67b04443 to your computer and use it in GitHub Desktop.
Save rpf5573/df93349a07de05a4367d32bb67b04443 to your computer and use it in GitHub Desktop.
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