-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Newslist component #17
Conversation
You don't need to put it in it's own folder yet, you can just pull it out into its own file like 'NewsListTable.js' |
src/App.js
Outdated
return ( | ||
<div> | ||
<h1>News List</h1> | ||
{this.state.news.map((item, index) => ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be a good idea to create a function renderNewsList()
, for instance. It's always nicer to keep the render function very simple. Easier to test too :)
Merging into master.. I'll keep you posted. |
todo: add tests and pull out newslist into separate folder (not sure about folder structure for compoennts?)
PR for Issue: #2