From 50d3c7846f0d83fe1cf764ca93d7fa19cfddc27c Mon Sep 17 00:00:00 2001 From: fecaille Date: Wed, 6 Apr 2016 13:56:58 +0200 Subject: [PATCH] Feature: set the SCM link --- pom.xml | 2 +- src/main/resources/static/js/comment_list.jsx | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/static/js/comment_list.jsx diff --git a/pom.xml b/pom.xml index 154528a..6f308c1 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ ${packaging.type} - scm:git:TOFILL + scm:git:https://github.com/Febbweiss/springboot-react-webpack diff --git a/src/main/resources/static/js/comment_list.jsx b/src/main/resources/static/js/comment_list.jsx new file mode 100644 index 0000000..799b63d --- /dev/null +++ b/src/main/resources/static/js/comment_list.jsx @@ -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.text} + ); + }); + return ( +
+ {commentNodes} +
+ ); +}; +CommentList.propTypes = { + data: React.PropTypes.node, +};