mirror of
https://github.com/Febbweiss/springboot-react-webpack.git
synced 2026-03-04 14:15:36 +00:00
Feature: set the SCM link
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -9,7 +9,7 @@
|
||||
<packaging>${packaging.type}</packaging>
|
||||
|
||||
<scm>
|
||||
<developerConnection>scm:git:TOFILL</developerConnection>
|
||||
<developerConnection>scm:git:https://github.com/Febbweiss/springboot-react-webpack</developerConnection>
|
||||
</scm>
|
||||
|
||||
<parent>
|
||||
|
||||
18
src/main/resources/static/js/comment_list.jsx
Normal file
18
src/main/resources/static/js/comment_list.jsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from 'react';
|
||||
import Comment from './comment.jsx';
|
||||
|
||||
const CommentList = function (props) {
|
||||
const commentNodes = props.data.map(function*(comment) {
|
||||
return (
|
||||
<Comment author={comment.author} key={comment.id}>{comment.text}</Comment>
|
||||
);
|
||||
});
|
||||
return (
|
||||
<div className="commentList">
|
||||
{commentNodes}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
CommentList.propTypes = {
|
||||
data: React.PropTypes.node,
|
||||
};
|
||||
Reference in New Issue
Block a user