src/index.js

// Import the React and ReactDOM libraries
import React from 'react';
import ReactDOM from 'react-dom';
import faker from 'faker';   //lib for fake data
import CommentDetail from './CommentDetail';

// Create a react component
const App = () => {
	return (
		<div className="ui container comments">
			<CommentDetail 
				author = "Sam" 
				content = "some content"
				avatar = {faker.image.avatar()}
			/>
			<CommentDetail 
				author = "Alex" 
				content = "another content"
				avatar = {faker.image.avatar()}
			/>
		</div>
	);
}

// Take the react component and show it on the screen
ReactDOM.render(
	<App />,
	document.querySelector('#root')
);

src/CommentDetail.js

import React from 'react';

const CommentDetail = props => {
	return (
		<div class="comment">
			<a href="/" className="avatar">
				<img src="{props.avatar}"/>
			</a>

			<div className="content">
				{props.author}
				{props.content}
			</div>
		</div>

	);
}

export default CommmentDetail;