Last active
January 8, 2021 13:40
-
-
Save lildude/a67721aeaef649bbd3f8a38101d99798 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const React = require('react') | |
module.exports = React.createClass({ | |
render: function() { | |
let {feeds, log} = this.props; | |
log.info(feeds); | |
return <div className="feed-list"> | |
<h3>News Feed's</h3> | |
<ul> | |
{feeds.map(function(feed) { | |
return <li key={feed.name} className={feed.fetched ? 'loaded' : 'loading'}> | |
{feed.data && feed.data.length > 0 ? | |
<span>{feed.name} <span className='light'>({feed.data.length})</span></span> | |
: 'feed.name' } | |
</li> | |
})} | |
</ul> | |
</> | |
</div>; | |
} | |
}); | |
function() { | |
let {feeds, log} = this.props; | |
log.info(feeds); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const React = require('react') | |
module.exports = React.createClass({ | |
render: function() { | |
let {feeds, log} = this.props; | |
log.info(feeds); | |
return <div className="feed-list"> | |
<h3>News Feed's</h3> | |
<ul> | |
{feeds.map(function(feed) { | |
return <li key={feed.name} className={feed.fetched ? 'loaded' : 'loading'}> | |
{feed.data && feed.data.length > 0 ? | |
<span>{feed.name} <span className='light'>({feed.data.length})</span></span> | |
: 'feed.name' } | |
</li> | |
})} | |
</ul> | |
</> | |
</div>; | |
} | |
}); | |
function() { | |
let {feeds, log} = this.props; | |
log.info(feeds); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment