Created
December 11, 2018 07:59
-
-
Save rpf5573/df93349a07de05a4367d32bb67b04443 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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