Skip to content

Commit fee33b2

Browse files
committed
Create Comment.jsx
1 parent 7748a93 commit fee33b2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from 'react';
2+
3+
class Comment extends React.Component {
4+
render() {
5+
return (
6+
<div>
7+
<h3>{this.props.author}</h3>
8+
{this.props.text}
9+
</div>
10+
);
11+
}
12+
}
13+
14+
export default Comment;

0 commit comments

Comments
 (0)