Slide 58
Slide 58 text
NewsItem.js
var React = require('react');
var NewsItem = React.createClass({
render: function() {
}
});
return (
React.createElement('article', {className: 'news-item'},
React.createElement('div', {className: 'news-author'}, '...'),
React.createElement('header', {className: 'news-title'}, '...'),
React.createElement('figure', {className: 'news-cover'},
'...',
React.createElement('ul', {className: 'news-stats'}, '...')
)
)
);